Skip to content

Commit

Permalink
Merge pull request #78 from jhunold/sed_fix
Browse files Browse the repository at this point in the history
Escape all forward slashes
  • Loading branch information
michaeldfallen committed Oct 20, 2015
2 parents eb0e287 + 5bee2b0 commit 6384987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radar-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6384987

Please sign in to comment.