generate $WALLY in a way that works for bash and zsh

This commit is contained in:
bbracker 2022-03-06 13:12:20 -08:00
parent 70ddc98d19
commit b1120069a0

View File

@ -7,7 +7,7 @@
echo "Executing Wally setup.sh" echo "Executing Wally setup.sh"
# Path to Wally repository # Path to Wally repository
WALLY=$(dirname ${BASH_SOURCE}) WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
export WALLY=$(cd "$WALLY" && pwd) export WALLY=$(cd "$WALLY" && pwd)
echo \$WALLY set to ${WALLY} echo \$WALLY set to ${WALLY}