From c2b63a21a59f731e374e162584cf217b49b6de1b Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 26 Oct 2020 13:59:14 +0100 Subject: [PATCH] execute.sh: is_update(): Fix returning exit code --- playbook/execute.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbook/execute.sh b/playbook/execute.sh index 35a60f9..0ae424d 100644 --- a/playbook/execute.sh +++ b/playbook/execute.sh @@ -4,7 +4,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"; source "$DIR/_common.sh"; function is_update() { - return [ -d /playbook.old ]; + [ -d /playbook.old ]; + return $?; } cd "$DIR";