check number of arguments
This commit is contained in:
parent
ef29f33b86
commit
f5a17a5a5d
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ die() { echo "$*" >&2; exit 1; }
|
|||
export LOCKFILE=${HOME}/.cvsup/$1_lock
|
||||
export DATEFILE=${HOME}/.cvsup/$1_date
|
||||
|
||||
if ( [ ${#} -ne 2 ] ); then
|
||||
die "Usage: cvsup <tree> <branch>\n"
|
||||
fi
|
||||
|
||||
if ( [ -e $LOCKFILE ]); then
|
||||
LOCKPID=`cat $LOCKFILE`
|
||||
if ( ! ps -p $LOCKPID|egrep -q "$LOCKPID" ); then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue