setup.sh: fix truty/falsy return of check_git_changes()

This commit is contained in:
Joe Schr 2023-02-02 20:56:54 +01:00
parent 330461cf1e
commit 3fd6d72984

View File

@ -190,16 +190,17 @@ function update() {
updateenv updateenv
} }
# Reset Develop or Stable branch
function check_git_changes() { function check_git_changes() {
if [ -z "$(git status --porcelain)" ]; then if [ -z "$(git status --porcelain)" ]; then
echo "No changes in git directory" echo "No changes in git directory"
return 0 return 1
else else
echo "Changes in git directory" echo "Changes in git directory"
return 1 return 0
fi fi
} }
# Reset Develop or Stable branch
function reset() { function reset() {
echo_block "Resetting branch and virtual env" echo_block "Resetting branch and virtual env"