Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-07 17:21:39 +0400
committerJeff Law <law@redhat.com>2000-07-07 17:21:39 +0400
commit77fcb25859f17680c4acd09cf2118cf06492b00b (patch)
treeddc77692f1e5f96db4d2703194f791402f2e0c85 /symlink-tree
parent52cec10c67d2c8615d7e15f36d93a7079da81f9f (diff)
* symlink-tree: Check number of arguments.
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 096582db6..8f11c0879 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