mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-01-22 22:25:41 +01:00
dockcross: Ensure running "update commands" exits script with correct status
This commit is contained in:
parent
43e46710e6
commit
c05d52310a
@ -146,10 +146,27 @@ FINAL_CONFIG=${ARG_CONFIG-${DOCKCROSS_CONFIG-$DEFAULT_DOCKCROSS_CONFIG}}
|
|||||||
# Set the docker image
|
# Set the docker image
|
||||||
FINAL_IMAGE=${ARG_IMAGE-${DOCKCROSS_IMAGE-$DEFAULT_DOCKCROSS_IMAGE}}
|
FINAL_IMAGE=${ARG_IMAGE-${DOCKCROSS_IMAGE-$DEFAULT_DOCKCROSS_IMAGE}}
|
||||||
|
|
||||||
# Handle specicial update command
|
# Handle special update command
|
||||||
[[ "$special_update_command" == "update" ]] && command:update && exit
|
if [ "$special_update_command" != "" ]; then
|
||||||
[[ "$special_update_command" == "update-script" ]] && command:update-script && exit
|
case $special_update_command in
|
||||||
[[ "$special_update_command" == "update-image" ]] && command:update-image && exit
|
|
||||||
|
update)
|
||||||
|
command:update
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
update-image)
|
||||||
|
command:update-image
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
update-script)
|
||||||
|
command:update-script
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
# Set the docker run extra args (if any)
|
# Set the docker run extra args (if any)
|
||||||
FINAL_ARGS=${ARG_ARGS-${DOCKCROSS_ARGS}}
|
FINAL_ARGS=${ARG_ARGS-${DOCKCROSS_ARGS}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user