Permalink
Browse files

Escape spaces in $icon_path before eval

  • Loading branch information...
1 parent 5f3edbc commit a192e58886e30b54a40565e55eb97ba004872d8a @joshdick joshdick committed Aug 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 git-dude
View
1 git-dude
@@ -74,6 +74,7 @@ while true; do
icon_path=$(git config dude.icon || true)
icon_path=${icon_path:-`pwd`/icon.png}
+ icon_path=${icon_path// /\\ } # escape spaces before eval
eval icon_path=$icon_path # to expand ~
while read -r line; do

0 comments on commit a192e58

Please sign in to comment.