Skip to content

Commit c618925

Browse files
authored
Merge pull request #17 from weirdan/realpath-through-php
Use PHP's realpath() instead of messing with readlink
2 parents ce0c3a5 + 089fa16 commit c618925

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/php-noxdebug

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/sh
2-
PREPEND=$(readlink -f -- "$(dirname $(readlink -f -- $0))/../src/prepend.php")
2+
set -e
3+
PREPEND="$(php -n -r 'echo realpath(dirname(realpath($argv[1])) . "/../src/prepend.php");' -- "$0")"
34
exec php -d"auto_prepend_file=$PREPEND" "$@"

0 commit comments

Comments
 (0)