diff options
author | Jeff Law <law@redhat.com> | 2000-07-07 13:21:39 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-07 13:21:39 +0000 |
commit | d312742cee36484424d78785364fb8a06efb9219 (patch) | |
tree | f2876731e2b8a39a30d8e2132af6883ea9de8006 /symlink-tree | |
parent | d3a8cd6f54f71730ed5f82a009b1292a466ebd00 (diff) | |
download | gdb-d312742cee36484424d78785364fb8a06efb9219.tar.gz |
* symlink-tree: Check number of arguments.
Diffstat (limited to 'symlink-tree')
-rwxr-xr-x | symlink-tree | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/symlink-tree b/symlink-tree index 096582db6eb..8f11c087932 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 |