Skip to content

Commit cb40371

Browse files
committed
Safely replace tilde characters with user's home path
1 parent cff5863 commit cb40371

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup-mac.sh

+2
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ if [[ $1 == "--workspace-dir"* ]]
189189
fi
190190
fi
191191

192+
WORKSPACE_DIR="${WORKSPACE_DIR/#\~/$HOME}"
193+
192194
echo ""
193195
echo ' ____ _____ ____ ________ ______ _____ _____(_)___ '
194196
echo ' / __ `/ __ \/ __ \/ ___/ _ \/ ___/ | / / _ \/ ___/ / __ \ '

0 commit comments

Comments
 (0)