dblume commited on 2021-11-03 14:25:54
Showing 1 changed files, with 1 additions and 1 deletions.
| ... | ... |
@@ -18,7 +18,7 @@ if ! $(declare -F __git_ps1 >/dev/null); then |
| 18 | 18 |
local fmt="${1:- (%s)}"
|
| 19 | 19 |
local branch=$(git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') |
| 20 | 20 |
if [ -n "$branch" ]; then |
| 21 |
- printf "$fmt" "$branch" |
|
| 21 |
+ printf -- "$fmt" "$branch" |
|
| 22 | 22 |
fi |
| 23 | 23 |
} |
| 24 | 24 |
fi |
| 25 | 25 |