Skip to content

Commit 0cc7708

Browse files
committed
Make Spin environment file non-executable
This file is intended to be read with `source`, not executed directly, so it’s misleading for it to have execute permission and a shebang line. In particular the `SCRIPT_PATH` is designed to work on both Bash and Zsh, which looks a little odd in a script with a Bash shebang.
1 parent 4809ea3 commit 0cc7708

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.spin/bin/env

100755100644
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/bin/bash
2-
31
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")
42
SCRIPT_PATH=$(cd "$SCRIPT_PATH" && pwd)
53
TRUFFLERUBY_DIR=$SCRIPT_PATH/../..

0 commit comments

Comments
 (0)