From cffaa28118e0b3f052508eb542c6bc344fe464a0 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 7 Jul 2000 13:21:39 +0000 Subject: * symlink-tree: Check number of arguments. --- symlink-tree | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'symlink-tree') diff --git a/symlink-tree b/symlink-tree index 096582d..8f11c08 100755 --- a/symlink-tree +++ b/symlink-tree @@ -10,6 +10,11 @@ prog=$0 srcdir=$1 ignore="$2" +if test $# -lt 1; then + echo "symlink-tree error: Usage: symlink-tree srcdir \"ignore1 ignore2 ...\"" + exit 1 +fi + ignore_additional=". .. CVS" # If we were invoked with a relative path name, adjust ${prog} to work -- cgit v1.1