Skip to content

Commit

Permalink
gupload: Always exit after --update or --uninstall flag is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Akianonymus committed Nov 7, 2020
1 parent 5c7340d commit 966547e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
8 changes: 6 additions & 2 deletions bash/release/gupload
Expand Up @@ -1164,8 +1164,12 @@ _setup_arguments() {
if [[ ${1} = -* ]]; then
[[ ${GUPLOAD_INSTALLED_WITH} = script ]] && {
case "${1}" in
-u | --update) _check_debug && _update && exit "${?}" ;;
--uninstall) _check_debug && _update uninstall && exit "${?}" ;;
-u | --update)
_check_debug && _update && { exit 0 || exit 1; }
;;
--uninstall)
_check_debug && _update uninstall && { exit 0 || exit 1; }
;;
esac
}
printf '%s: %s: Unknown option\nTry '"%s -h/--help"' for more information.\n' "${0##*/}" "${1}" "${0##*/}" && exit 1
Expand Down
8 changes: 6 additions & 2 deletions bash/upload.bash
Expand Up @@ -231,8 +231,12 @@ _setup_arguments() {
if [[ ${1} = -* ]]; then
[[ ${GUPLOAD_INSTALLED_WITH} = script ]] && {
case "${1}" in
-u | --update) _check_debug && _update && exit "${?}" ;;
--uninstall) _check_debug && _update uninstall && exit "${?}" ;;
-u | --update)
_check_debug && _update && { exit 0 || exit 1; }
;;
--uninstall)
_check_debug && _update uninstall && { exit 0 || exit 1; }
;;
esac
}
printf '%s: %s: Unknown option\nTry '"%s -h/--help"' for more information.\n' "${0##*/}" "${1}" "${0##*/}" && exit 1
Expand Down
8 changes: 6 additions & 2 deletions sh/release/gupload
Expand Up @@ -1157,8 +1157,12 @@ _setup_arguments() {
if [ -z "${1##-*}" ]; then
[ "${GUPLOAD_INSTALLED_WITH}" = script ] && {
case "${1}" in
-u | --update) _check_debug && _update && exit "${?}" ;;
--uninstall) _check_debug && _update uninstall && exit "${?}" ;;
-u | --update)
_check_debug && _update && { exit 0 || exit 1; }
;;
--uninstall)
_check_debug && _update uninstall && { exit 0 || exit 1; }
;;
esac
}
printf '%s: %s: Unknown option\nTry '"%s -h/--help"' for more information.\n' "${0##*/}" "${1}" "${0##*/}" && exit 1
Expand Down
8 changes: 6 additions & 2 deletions sh/upload.sh
Expand Up @@ -239,8 +239,12 @@ _setup_arguments() {
if [ -z "${1##-*}" ]; then
[ "${GUPLOAD_INSTALLED_WITH}" = script ] && {
case "${1}" in
-u | --update) _check_debug && _update && exit "${?}" ;;
--uninstall) _check_debug && _update uninstall && exit "${?}" ;;
-u | --update)
_check_debug && _update && { exit 0 || exit 1; }
;;
--uninstall)
_check_debug && _update uninstall && { exit 0 || exit 1; }
;;
esac
}
printf '%s: %s: Unknown option\nTry '"%s -h/--help"' for more information.\n' "${0##*/}" "${1}" "${0##*/}" && exit 1
Expand Down

0 comments on commit 966547e

Please sign in to comment.