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

This commit is contained in:
Edgars Beigarts
2016-02-21 23:35:14 +02:00
parent 1432369df4
commit b6240f7089
2 changed files with 13 additions and 1 deletions

View File

@@ -128,7 +128,9 @@ case "$1" in
[[ -n $SSH_TTY ]] && stty -opost
docker exec "$SERVICE_NAME" env PGPASSWORD="$PASSWORD" pg_dump -Fc --no-acl --no-owner -h localhost -U postgres -w "$DATABASE_NAME"
status=$?
[[ -n $SSH_TTY ]] && stty opost
exit $status
;;
$PLUGIN_COMMAND_PREFIX:import)