From d56e56c594a9b0b336effa1a2ddcf4ce931cacb4 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 11 Oct 2018 11:05:21 +0200 Subject: [PATCH] Return instead of exit --- zsh/update.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/update.zsh b/zsh/update.zsh index 922e7e2..d9bc824 100644 --- a/zsh/update.zsh +++ b/zsh/update.zsh @@ -16,7 +16,7 @@ update() { if [ $? -ne 0 ]; then echo "Could not get sudo..." - exit 1 + return 1 fi echo "\033[32;1m=== Updating system ===\033[0m"