libexec/unlock in alpha_omega-0.0.163 vs libexec/unlock in alpha_omega-0.0.164

- old
+ new

@@ -20,11 +20,11 @@ fi case "$1" in patch|minor|major) bump=$1; shift - set $(cat $tmp_version | sed 's#\.# #g') + set -- $(cat $tmp_version | sed 's#\.# #g') case "$bump" in patch) echo "$1.$2.$(($3 + 1))" ;; minor) @@ -41,11 +41,11 @@ echo $ver_new > $tmp_version ;; esac ver_new=$(cat $tmp_version) - set $(echo "$ver_new" | sed 's#\.# #g') 0 + set -- $(echo "$ver_new" | sed 's#\.# #g') 0 M=$1; shift m=$1; shift p=$1; shift (echo "$(($M+0)).$(($m+0)).$(($p+0))" > $tmp_version) 2>&- @@ -138,11 +138,11 @@ case "$(basename $0)" in invoke) export COMMAND="$1"; shift if [[ -n $1 ]]; then - set $(for a in "$@"; do echo $a.app; done) + set -- $(for a in "$@"; do echo $a.app; done) fi LOCAL_ONLY= tmp_invoke=$(mktemp -t XXXXXXXXX) bundle exec cap "$@" invoke 2>&1 | perl -pe 's{.\[\d+m}{}g' | perl -ne 'm{^\s*\*+\s*\[(out|err)\s*::\s*([^]]+)\] ?(.*)} && print "$1 $2 $3\n"' > $tmp_invoke 2>&1 @@ -153,11 +153,11 @@ done rm -f $tmp_invoke ;; *) if [[ -n $1 ]]; then - set $(for a in "$@"; do echo $a; done) + set -- $(for a in "$@"; do echo $a; done) fi case "$(basename $0)" in debug) if [[ -z $1 ]]; then @@ -194,10 +194,10 @@ ;; *) LOCAL_ONLY= if [[ -n $1 ]]; then - set $(for a in "$@"; do echo $a.app; done) + set -- $(for a in "$@"; do echo $a.app; done) fi case "$(basename $0)" in deploy) bundle exec cap "$@" deploy:lock deploy ;;