Fix exit code for mysql:export when SSH_TTY is not present

This commit is contained in:
Edgars Beigarts
2016-02-24 09:25:31 +02:00
parent fadda9c5e2
commit 33b233aca0
2 changed files with 13 additions and 1 deletions

View File

@@ -124,7 +124,9 @@ case "$1" in
[[ -n $SSH_TTY ]] && stty -opost
docker exec "$SERVICE_NAME" mysqldump --user=mysql --password="$PASSWORD" "$SERVICE"
status=$?
[[ -n $SSH_TTY ]] && stty opost
exit $status
;;
$PLUGIN_COMMAND_PREFIX:import)