From 7307b385d83413fb2686c4177f2060eb36bd6165 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 Nov 2015 15:33:15 -0500 Subject: [PATCH] Ensure we exit with the proper status code --- dokku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokku b/dokku index d1b889f96..a2452e38f 100755 --- a/dokku +++ b/dokku @@ -51,7 +51,7 @@ fi if [[ $(id -un) != "dokku" && $1 != plugin:*install* && $1 != "plugin:update" ]]; then sudo -u dokku -E -H $0 "$@" - exit + exit $? fi if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then