mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Improve else condition of branch determination
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
0343171703
commit
401c029dc4
1 changed files with 2 additions and 4 deletions
|
@ -132,11 +132,9 @@ getLocalBranch(){
|
|||
else
|
||||
echo "${branch} "
|
||||
fi
|
||||
elif [[ "${branch}" == "${DEFAULT}" ]]; then
|
||||
echo "ERROR"
|
||||
return 1
|
||||
else
|
||||
echo "No Checked out branch"
|
||||
# Branch started in "v"
|
||||
echo "release "
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue