From 291ef0c616a208541ed8b5acaa14b2f2504d9624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Mej=C3=ADas=20Rodr=C3=ADguez?= Date: Sun, 25 Nov 2018 12:16:38 -0500 Subject: [PATCH] Remove error exit when undeploying unexistent stak --- psu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psu b/psu index fdb6bd5..900b6e5 100755 --- a/psu +++ b/psu @@ -187,8 +187,8 @@ deploy () { ################## undeploy () { if [ -z "$STACK" ]; then - echo "Error: Stack $PORTAINER_STACK_NAME not found." - exit 1 + echo_verbose "Stack $PORTAINER_STACK_NAME not found." + exit 0 fi echo_verbose "Stack $PORTAINER_STACK_NAME found."