mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
We were on v3 that is no longer maintained and compatibility is annonced for PHP 7.2. v4 is active and supports PHP up to 8.0 No problem to update as this is only used in the config editor (\Combodo\iTop\Config\Validator\iTopConfigAstValidator)
15 lines
361 B
Bash
15 lines
361 B
Bash
#!/usr/bin/env sh
|
|
|
|
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../nikic/php-parser/bin" && pwd)
|
|
|
|
if [ -d /proc/cygdrive ]; then
|
|
case $(which php) in
|
|
$(readlink -n /proc/cygdrive)/*)
|
|
# We are in Cygwin using Windows php, so the path must be translated
|
|
dir=$(cygpath -m "$dir");
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
"${dir}/php-parse" "$@"
|