From 637ef954a8391bc21c460047a7c184ebf94a41ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 23 Apr 2013 16:02:23 +0200 Subject: [PATCH] One more fix around using external repository. --- mock.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mock.sh b/mock.sh index 5ec4d64..2ab6c7a 100755 --- a/mock.sh +++ b/mock.sh @@ -294,13 +294,14 @@ EOF ;; add) + shift FILES=$@ if test -z "$FILES"; then echo "Usage: $0 push { FILE.rpm... | FILE.changes... }" exit 1 fi - for file in $FILES; do shift; add $file; done + for file in $FILES; do add $file; shift; done ;; *) @@ -312,7 +313,7 @@ EOF ;; esac - shift + shift || : done release_sign -- 1.8.2.3