Skip to content

Commit 94cb39b

Browse files
committed
Add Bash/Zsh compatibility comment to Spin environment file
The syntax is a little convoluted here, so this extra inline information might be useful to someone trying to debug or change it in the future.
1 parent 0cc7708 commit 94cb39b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.spin/bin/env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# $BASH_SOURCE[0] is for Bash, ${(%):-%x} is for Zsh
12
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")
23
SCRIPT_PATH=$(cd "$SCRIPT_PATH" && pwd)
34
TRUFFLERUBY_DIR=$SCRIPT_PATH/../..

0 commit comments

Comments
 (0)