From 2ec1bf344f8f81ab71b5805bd397c60de279e7ac Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Fri, 12 Oct 2012 02:31:55 -0400 Subject: [PATCH] Add quotes to cd command in scm_breeze.sh to fix bash eval error --- lib/scm_breeze.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scm_breeze.sh b/lib/scm_breeze.sh index 1b86a5e..e4163d1 100644 --- a/lib/scm_breeze.sh +++ b/lib/scm_breeze.sh @@ -41,7 +41,7 @@ _create_or_patch_scmbrc() { # Create diff of example file, substituting example file for user's config. git diff $1 "$prefix""scmbrc.example" | sed "s/$prefix""scmbrc.example/.$prefix""scmbrc/g" > $patchfile if [ -s $patchfile ]; then # If patchfile is not empty - cd $HOME + cd "$HOME" # If the patch cannot be applied cleanly, show the updates and tell user to update file manually. if ! patch -f "$HOME/.$prefix""scmbrc" $patchfile; then printf "== \e[0;31mUpdates could not be applied to '\e[1m~/.$prefix""scmbrc\e[0;31m'.\e[0m\n"