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
|
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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user