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
}
# 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"