Skip to content

Commit

Permalink
add fallback to local
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy committed Sep 24, 2024
1 parent ab29f33 commit ba3eca6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions laravel-sail.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ function s() {
npm install
else
if [ "$sail_path" = "" ]; then
if [ $ZSH_SAIL_FALLBACK_TO_LOCAL = "true" ]; then
$*
else
>&2 printf "laravel-sail: sail executable not found. Are you in a Laravel directory?\nif yes try install Dependencies using 's cinit' command\n"
return 1
fi
fi
$sail_path $*
fi
Expand Down

0 comments on commit ba3eca6

Please sign in to comment.