forgotten $
[friendica.git/.git] / bin / console
1 #!/bin/bash
2
3 dir=$(cd "${0%[/\\]*}" > /dev/null; pwd)
4
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");
8 fi
9
10 php "${dir}/console.php" "$@"