git://scientific.zcu.cz
/
mock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9707fe7
)
Help text tuning, minor fixes (non-standard characters in file names...).
author
František Dvořák
<valtri@civ.zcu.cz>
Tue, 7 May 2013 13:48:10 +0000
(15:48 +0200)
committer
František Dvořák
<valtri@civ.zcu.cz>
Tue, 7 May 2013 13:48:10 +0000
(15:48 +0200)
mock.sh
patch
|
blob
|
blame
|
history
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
;;
*)