diff options
author | Michael Allen <michael@michaelallen.io> | 2015-10-20 10:20:24 +0100 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-10-20 10:20:24 +0100 |
commit | 6384987cbdfb3138b737149370ba804f0b6f815a (patch) | |
tree | ffa2f38416b4e17ff4c0736d6d2c6d587461c935 | |
parent | eb0e287cb322ef7cebd77941d51910180aefb185 (diff) | |
parent | 5bee2b0f959cd44cd636610d06d67f103fdbe37b (diff) | |
download | git-sonar-6384987cbdfb3138b737149370ba804f0b6f815a.tar.gz git-sonar-6384987cbdfb3138b737149370ba804f0b6f815a.zip |
Merge pull request #78 from jhunold/sed_fix
Escape all forward slashes
-rwxr-xr-x | radar-base.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radar-base.sh b/radar-base.sh index 0dea4b5..9652fe1 100755 --- a/radar-base.sh +++ b/radar-base.sh @@ -546,7 +546,7 @@ render_prompt() { fi fi if [[ $PROMPT_FORMAT =~ ${if_pre}branch${if_post} ]]; then - branch_result="$(readable_branch_name | sed -e 's/\//\\\//')" + branch_result="$(readable_branch_name | sed -e 's/\//\\\//g')" if [[ -n "$branch_result" ]]; then branch_sed="s/${sed_pre}branch${sed_post}/\2${branch_result}\4/" else |