File tree 4 files changed +24
-8
lines changed
4 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -1164,8 +1164,12 @@ _setup_arguments() {
1164
1164
if [[ ${1} = -* ]]; then
1165
1165
[[ ${GUPLOAD_INSTALLED_WITH} = script ]] && {
1166
1166
case " ${1} " in
1167
- -u | --update) _check_debug && _update && exit " ${?} " ;;
1168
- --uninstall) _check_debug && _update uninstall && exit " ${?} " ;;
1167
+ -u | --update)
1168
+ _check_debug && _update && { exit 0 || exit 1; }
1169
+ ;;
1170
+ --uninstall)
1171
+ _check_debug && _update uninstall && { exit 0 || exit 1; }
1172
+ ;;
1169
1173
esac
1170
1174
}
1171
1175
printf ' %s: %s: Unknown option\nTry ' " %s -h/--help" ' for more information.\n' " ${0##*/ } " " ${1} " " ${0##*/ } " && exit 1
Original file line number Diff line number Diff line change @@ -231,8 +231,12 @@ _setup_arguments() {
231
231
if [[ ${1} = -* ]]; then
232
232
[[ ${GUPLOAD_INSTALLED_WITH} = script ]] && {
233
233
case " ${1} " in
234
- -u | --update) _check_debug && _update && exit " ${?} " ;;
235
- --uninstall) _check_debug && _update uninstall && exit " ${?} " ;;
234
+ -u | --update)
235
+ _check_debug && _update && { exit 0 || exit 1; }
236
+ ;;
237
+ --uninstall)
238
+ _check_debug && _update uninstall && { exit 0 || exit 1; }
239
+ ;;
236
240
esac
237
241
}
238
242
printf ' %s: %s: Unknown option\nTry ' " %s -h/--help" ' for more information.\n' " ${0##*/ } " " ${1} " " ${0##*/ } " && exit 1
Original file line number Diff line number Diff line change @@ -1157,8 +1157,12 @@ _setup_arguments() {
1157
1157
if [ -z " ${1## -* } " ]; then
1158
1158
[ " ${GUPLOAD_INSTALLED_WITH} " = script ] && {
1159
1159
case " ${1} " in
1160
- -u | --update) _check_debug && _update && exit " ${?} " ;;
1161
- --uninstall) _check_debug && _update uninstall && exit " ${?} " ;;
1160
+ -u | --update)
1161
+ _check_debug && _update && { exit 0 || exit 1; }
1162
+ ;;
1163
+ --uninstall)
1164
+ _check_debug && _update uninstall && { exit 0 || exit 1; }
1165
+ ;;
1162
1166
esac
1163
1167
}
1164
1168
printf '%s: %s: Unknown option\nTry '" %s -h/--help" ' for more information.\n' " ${0##*/ } " " ${1} " " ${0##*/ } " && exit 1
Original file line number Diff line number Diff line change @@ -239,8 +239,12 @@ _setup_arguments() {
239
239
if [ -z " ${1## -* } " ]; then
240
240
[ " ${GUPLOAD_INSTALLED_WITH} " = script ] && {
241
241
case " ${1} " in
242
- -u | --update) _check_debug && _update && exit " ${?} " ;;
243
- --uninstall) _check_debug && _update uninstall && exit " ${?} " ;;
242
+ -u | --update)
243
+ _check_debug && _update && { exit 0 || exit 1; }
244
+ ;;
245
+ --uninstall)
246
+ _check_debug && _update uninstall && { exit 0 || exit 1; }
247
+ ;;
244
248
esac
245
249
}
246
250
printf ' %s: %s: Unknown option\nTry ' " %s -h/--help" ' for more information.\n' " ${0##*/ } " " ${1} " " ${0##*/ } " && exit 1
You can’t perform that action at this time.
0 commit comments