summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSheogorath2017-10-10 23:28:16 +0200
committerGitHub2017-10-10 23:28:16 +0200
commit11133c3cecda78ecdb173bc27d9c84adfde4d8c3 (patch)
treeb16a8b17986cee2e12f849b3b26c48cb84b99c60 /bin
parenta99cac0cf05acaddd38f21851e85ae542ebc0070 (diff)
parent6ed44f08641a5badb295f6e5115f828abc57f427 (diff)
Merge pull request #571 from SISheogorath/fix/shellcheck
Prevent argument breaking by spaces
Diffstat (limited to 'bin')
-rwxr-xr-xbin/setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/setup b/bin/setup
index 3f143cd3..3edffc49 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"