Skip to content

Commit 6ed44f0

Browse files
committed
Prevent argument breaking by spaces
1 parent a99cac0 commit 6ed44f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# run command at repo root
66
CURRENT_PATH=$PWD
77
if [ -d .git ]; then
8-
cd $(git rev-parse --show-toplevel)
8+
cd "$(git rev-parse --show-toplevel)"
99
fi
1010

1111
if ! type npm > /dev/null
@@ -43,4 +43,4 @@ Read more info at https://github.com/hackmdio/hackmd#configuration-files
4343
EOF
4444

4545
# change directory back
46-
cd $CURRENT_PATH
46+
cd "$CURRENT_PATH"

0 commit comments

Comments
 (0)