libexec/release in alpha_omega-0.0.185 vs libexec/release in alpha_omega-0.0.186
- old
+ new
@@ -112,25 +112,25 @@
plan)
bundle exec cap "$@" deploy:lock deploy:plan
;;
lock)
- case "$1" in
- compare.app|migrate.app)
- nm_lock="$1"; shift
+ case "${1%.app}" in
+ compare|migrate)
+ nm_lock="${1%.app}"; shift
bundle exec cap "$@" deploy:dont_unlock "deploy:lock_${nm_lock}"
;;
*)
bundle exec cap "$@" deploy:dont_unlock deploy:lock
;;
esac
;;
unlock)
- case "$1" in
- compare.app|migrate.app)
- nm_lock="$1"; shift
+ case "${1%.app}" in
+ compare|migrate)
+ nm_lock="${1%.app}"; shift
bundle exec cap "$@" "deploy:unlock_${nm_lock}"
;;
*)
bundle exec cap "$@" deploy:unlock
;;
@@ -149,30 +149,30 @@
bundle exec cap "$@" deploy:lock_compare deploy:repl
;;
migrate)
want_list=
- if [[ $1 = "list" ]]; then
+ if [[ "${1%.app}" = "list" ]]; then
want_list=1; shift
fi
change_group=
migration=
- case $1 in
+ case "${1%.app}" in
data)
- change_group=$1; shift
+ change_group=${1%.app}; shift
;;
pre)
- change_group=$1; shift
+ change_group=${1%.app}; shift
;;
during)
- change_group=$1; shift
+ change_group=${1%.app} shift
;;
post)
- change_group=$1; shift
+ change_group=${1%.app}; shift
;;
[0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789][0123456789])
- migration=$1; shift
+ migration=${1%.app}; shift
;;
esac
if [[ -n $change_group ]]; then
if [[ -n $want_list ]]; then