Changeset 2313


Ignore:
Timestamp:
Sep 1, 2012, 10:30:45 AM (12 years ago)
Author:
ezyang
Message:
More robust error handling for cronload, by btidor.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/accountadm/cronload

    r765 r2313  
    11#!/bin/sh
     2
     3if [ -z "$1" ]; then
     4  echo "ERROR: please specify a crontab file" >&2
     5  exit 1
     6fi
    27
    38if [ -n "$2" ]; then
    49  cd "$2"
     10fi
     11
     12if [ ! -f "$1" ]; then
     13  echo "ERROR: file does not exist" >&2
     14  exit 1
    515fi
    616
Note: See TracChangeset for help on using the changeset viewer.