Skip to content

Commit

Permalink
Support path with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim committed Mar 15, 2023
1 parent 81b2092 commit 7d5fc18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions scripts/hats_shell.command
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

cd "$(dirname "${BASH_SOURCE[0]}")"

if [ ${PWD##*/} = "scripts" ]; then
cd ..
fi

source "$(dirname "$0")/hats_shell.sh"

zsh
4 changes: 3 additions & 1 deletion scripts/install_purple_dependencies.command
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

cd "$(dirname "${BASH_SOURCE[0]}")"

if [ ${PWD##*/} = "scripts" ]; then
CURR_FOLDERNAME=$(basename $PWD)
if [ $CURR_FOLDERNAME = "scripts" ]; then
cd ..
CURR_FOLDERNAME=$(basename $PWD)
fi

if ! [ -f nodejs-mac-arm64/bin/node ]; then
Expand Down

0 comments on commit 7d5fc18

Please sign in to comment.