From 5edb15b73e4722bb68f92d28cdc05e542c88d27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denny=20Sch=C3=A4fer?= Date: Wed, 25 Sep 2013 12:22:44 +0200 Subject: [PATCH] Fix indent, Strip traling spaces and convert tabs to spaces --- gitprompt.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gitprompt.sh b/gitprompt.sh index f09815b..945bc9e 100644 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -2,9 +2,9 @@ function async_run() { - { - $1 &> /dev/null - }& + { + $1 &> /dev/null + }& } function git_prompt_dir() @@ -96,7 +96,7 @@ function setGitPrompt() { PS1="${EMPTY_PROMPT}" return fi - + checkUpstream updatePrompt } @@ -110,8 +110,8 @@ function checkUpstream() { if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]] then if [[ -n $(git remote show) ]]; then - async_run "git fetch --quiet" - disown + async_run "git fetch --quiet" + disown fi fi }