summaryrefslogtreecommitdiff
path: root/symlink-tree
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-07 13:18:48 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-07 13:18:48 +0000
commit1ac432f17da0e2ac29ac5e4fffeb6356102f9b42 (patch)
tree542e59af230343af4bbf1e3dd427ab6f9e6b10c7 /symlink-tree
parentea7a28cfeaaef24ec21577358e847fa55fc11dfb (diff)
* symlink-tree: Check number of arguments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'symlink-tree')
-rwxr-xr-xsymlink-tree5
1 files changed, 5 insertions, 0 deletions
diff --git a/symlink-tree b/symlink-tree
index 096582db6eb6..8f11c0879325 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