#!/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/6512 selfArg="$BASH_SOURCE" if [ -z "$selfArg" ]; then selfArg="$0" fi self=$(realpath $selfArg 2> /dev/null) if [ -z "$self" ]; then self="$selfArg" fi dir=$(cd "${self%[/\\]*}" > /dev/null; cd ../laravel/sail/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 export COMPOSER_RUNTIME_BIN_DIR="$(cd "${self%[/\\]*}" > /dev/null; pwd)" # If bash is sourcing this file, we have to source the target as well bashSource="$BASH_SOURCE" if [ -n "$bashSource" ]; then if [ "$bashSource" != "$0" ]; then source "${dir}/sail" "$@" return fi fi "${dir}/sail" "$@"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
carbon | File | 3.25 KB | 0644 |
|
carbon.bat | File | 133 B | 0644 |
|
doctrine-dbal | File | 3.28 KB | 0644 |
|
doctrine-dbal.bat | File | 140 B | 0644 |
|
google-cloud-batch | File | 3.3 KB | 0644 |
|
google-cloud-batch.bat | File | 145 B | 0644 |
|
jp.php | File | 3.28 KB | 0644 |
|
jp.php.bat | File | 133 B | 0644 |
|
patch-type-declarations | File | 3.36 KB | 0644 |
|
patch-type-declarations.bat | File | 150 B | 0644 |
|
php-parse | File | 3.27 KB | 0644 |
|
php-parse.bat | File | 136 B | 0644 |
|
phpunit | File | 3.61 KB | 0644 |
|
phpunit.bat | File | 134 B | 0644 |
|
pint | File | 3.25 KB | 0644 |
|
pint.bat | File | 131 B | 0644 |
|
psysh | File | 3.24 KB | 0644 |
|
psysh.bat | File | 132 B | 0644 |
|
sail | File | 941 B | 0644 |
|
sail.bat | File | 152 B | 0644 |
|
var-dump-server | File | 3.33 KB | 0644 |
|
var-dump-server.bat | File | 142 B | 0644 |
|
yaml-lint | File | 3.29 KB | 0644 |
|
yaml-lint.bat | File | 136 B | 0644 |
|