From 1d874d50c51354da49e6ebaea3c3da04b6c3809f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Westlin?= Date: Sun, 1 Sep 2013 12:51:11 +0200 Subject: [PATCH] Fix for when spaces exists in repo path --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index 9a72384..53be953 100644 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -107,7 +107,7 @@ function setGitPrompt() { local FETCH_HEAD="${repo}/.git/FETCH_HEAD" # Fech repo if local is stale for more than $GIT_FETCH_TIMEOUT minutes - if [[ ! -e "${FETCH_HEAD}" || -e `find ${FETCH_HEAD} -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]] + if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]] then [[ -n $(git remote show) ]] && git fetch --quiet fi