setup.sh: fix truty/falsy return of check_git_changes()
This commit is contained in:
parent
330461cf1e
commit
3fd6d72984
7
setup.sh
7
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user