Fixed issue introduced in #1109

With the added $ in there, it would show an error in Git repos:

-bash: ##: command not found
This commit is contained in:
Nils Winkler
2017-12-11 11:35:52 +01:00
parent 4021bbcfb1
commit 0267554c22

View File

@@ -202,7 +202,7 @@ function git_prompt_vars {
SCM_STATE=${GIT_THEME_PROMPT_CLEAN:-$SCM_THEME_PROMPT_CLEAN}
if [[ "$(git config --get bash-it.hide-status)" != "1" ]]; then
[[ "${SCM_GIT_IGNORE_UNTRACKED}" = "true" ]] && local git_status_flags='-uno'
local status_lines=$($(git status --porcelain ${git_status_flags} -b 2> /dev/null ||
local status_lines=$((git status --porcelain ${git_status_flags} -b 2> /dev/null ||
git status --porcelain ${git_status_flags} 2> /dev/null) | git_status_summary)
local status=$(awk 'NR==1' <<< "$status_lines")
local counts=$(awk 'NR==2' <<< "$status_lines")