Merge pull request #571 from SISheogorath/fix/shellcheck

Prevent argument breaking by spaces
This commit is contained in:
Sheogorath 2017-10-10 23:28:16 +02:00 committed by GitHub
commit 11133c3cec
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ set -e
# run command at repo root # run command at repo root
CURRENT_PATH=$PWD CURRENT_PATH=$PWD
if [ -d .git ]; then if [ -d .git ]; then
cd $(git rev-parse --show-toplevel) cd "$(git rev-parse --show-toplevel)"
fi fi
if ! type npm > /dev/null if ! type npm > /dev/null
@ -43,4 +43,4 @@ Read more info at https://github.com/hackmdio/hackmd#configuration-files
EOF EOF
# change directory back # change directory back
cd $CURRENT_PATH cd "$CURRENT_PATH"