From 6ed44f08641a5badb295f6e5115f828abc57f427 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Tue, 10 Oct 2017 13:36:37 +0200 Subject: [PATCH] Prevent argument breaking by spaces --- bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/setup b/bin/setup index 3f143cd38..3edffc49f 100755 --- a/bin/setup +++ b/bin/setup @@ -5,7 +5,7 @@ set -e # run command at repo root CURRENT_PATH=$PWD if [ -d .git ]; then - cd $(git rev-parse --show-toplevel) + cd "$(git rev-parse --show-toplevel)" fi if ! type npm > /dev/null @@ -43,4 +43,4 @@ Read more info at https://github.com/hackmdio/hackmd#configuration-files EOF # change directory back -cd $CURRENT_PATH +cd "$CURRENT_PATH"