3 dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
5 if [[ -d /proc/cygdrive && $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
6 # We are in Cgywin using Windows php, so the path must be translated
7 dir=$(cygpath -m "$dir");
10 php "${dir}/console.php" "$@"