]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - symlink-tree
* symlink-tree: Check number of arguments.
[thirdparty/gcc.git] / symlink-tree
index 096582db6eb6426e681539e9f55b1a4ca18281f6..8f11c0879325bd306969c34cf8db541a0ea4fb0a 100755 (executable)
@@ -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