Revision 148 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
#!/usr/bin/env sh# Support bash to support `source` with fallback on $0 if this does not run with bash# https://stackoverflow.com/a/35006505/6512selfArg="$BASH_SOURCE"if [ -z "$selfArg" ]; thenselfArg="$0"fiself=$(realpath $selfArg 2> /dev/null)if [ -z "$self" ]; thenself="$selfArg"fidir=$(cd "${self%[/\\]*}" > /dev/null; cd '../../../zeldi/vendor/laravel/sail/bin' && pwd)if [ -d /proc/cygdrive ]; thencase $(which php) in$(readlink -n /proc/cygdrive)/*)# We are in Cygwin using Windows php, so the path must be translateddir=$(cygpath -m "$dir");;;esacfiexport COMPOSER_RUNTIME_BIN_DIR="$(cd "${self%[/\\]*}" > /dev/null; pwd)"# If bash is sourcing this file, we have to source the target as wellbashSource="$BASH_SOURCE"if [ -n "$bashSource" ]; thenif [ "$bashSource" != "$0" ]; thensource "${dir}/sail" "$@"returnfifi"${dir}/sail" "$@"