From 3fd6d7298493dc6f6956b2c7e77de2a62bcf09ff Mon Sep 17 00:00:00 2001 From: Joe Schr <8218910+TheJoeSchr@users.noreply.github.com> Date: Thu, 2 Feb 2023 20:56:54 +0100 Subject: [PATCH] setup.sh: fix truty/falsy return of check_git_changes() --- setup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index da887a336..ca5361bad 100755 --- a/setup.sh +++ b/setup.sh @@ -190,16 +190,17 @@ function update() { updateenv } -# Reset Develop or Stable branch function check_git_changes() { if [ -z "$(git status --porcelain)" ]; then echo "No changes in git directory" - return 0 + return 1 else echo "Changes in git directory" - return 1 + return 0 fi } + +# Reset Develop or Stable branch function reset() { echo_block "Resetting branch and virtual env"