Permalink
Browse files

Fixes bug when pwd has spaces

  • Loading branch information...
1 parent 66cf5aa commit 366b3e49e0e55e095fbd085f286736f17cfb25f7 @joefiorini committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/rbenv-prompt
View
@@ -11,7 +11,7 @@ case ${version_string%-*} in
*) version_string="" ;;
esac
-[ -f $(pwd)/.rbenv-gemsets ] && gemset_string="$(rbenv gemset active | cut -d' ' -f1)"
+[ -f "$(pwd)/.rbenv-gemsets" ] && gemset_string="$(rbenv gemset active | cut -d' ' -f1)"
if [ ! $version_string = '' ]; then
echo "$version_string$gemset_string"
fi

0 comments on commit 366b3e4

Please sign in to comment.