prefer if/else. magicmonty/bash-git-prompt/pull/370

master
hotpocket 8 years ago
parent de16dd6b97
commit 7c2216a408
  1. 4
      gitprompt.sh

@ -303,9 +303,9 @@ function setLastCommandState() {
function we_are_on_repo() { function we_are_on_repo() {
if [[ -e "$(git rev-parse --git-dir 2> /dev/null)" ]]; then if [[ -e "$(git rev-parse --git-dir 2> /dev/null)" ]]; then
echo 1 echo 1
return else
echo 0
fi fi
echo 0
} }
function update_old_git_prompt() { function update_old_git_prompt() {

Loading…
Cancel
Save