Help text tuning, minor fixes (non-standard characters in file names...).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 7 May 2013 13:48:10 +0000 (15:48 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 7 May 2013 13:48:10 +0000 (15:48 +0200)
mock.sh

diff --git a/mock.sh b/mock.sh
index a98b9da..8702f2c 100755 (executable)
--- a/mock.sh
+++ b/mock.sh
@@ -293,14 +293,15 @@ EOF
                ;;
 
        add)
-               shift
-               FILES=$@
-               if test -z "$FILES"; then
-                       echo "Usage: $0 push { FILE.rpm... | FILE.changes... }"
+               if test -z "$2"; then
+                       echo "Usage: $0 add { FILE.rpm... | FILE.changes... }"
                        exit 1
                fi
 
-               for file in $FILES; do add $file; shift; done
+               while test -n "$2"; do
+                       shift
+                       add "$1"
+               done
                ;;
 
        *)