Skip to content

Commit 4141bd6

Browse files
committed
Merge pull request #270 from glensc/phar-shebang
phar shebang disable
2 parents 2178681 + 5285841 commit 4141bd6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dist/box.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
],
2121
"main": "vendor/autoload.php",
2222
"output": "defuse-crypto.phar",
23+
"shebang": false,
2324
"stub": true
2425
}

test.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
set -e
33

44
BIG_GENERATED_FILE=./test/unit/File/big-generated-file
@@ -14,5 +14,9 @@ else
1414
BOOTSTRAP="vendor/autoload.php"
1515
fi
1616

17+
# loading bootstrap should output nothing
18+
load=$(php -r "require '$BOOTSTRAP';")
19+
test -z "$load"
20+
1721
./test/phpunit.sh "$BOOTSTRAP"
1822
echo ""

0 commit comments

Comments
 (0)