From: František Dvořák Date: Tue, 7 May 2013 13:48:10 +0000 (+0200) Subject: Help text tuning, minor fixes (non-standard characters in file names...). X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=bc2ff24ae804b70a395ca8480a77a0ffa859bead;p=mock.git Help text tuning, minor fixes (non-standard characters in file names...). --- diff --git a/mock.sh b/mock.sh index a98b9da..8702f2c 100755 --- 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 ;; *)