Skip to content

Commit

Permalink
Lint sail script (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriacosta authored Jan 19, 2024
1 parent 988961f commit c1c8511
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/sail
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ else
fi

# Source the ".env" file so Laravel's environment variables are available...
if [ ! -z "$APP_ENV" ] && [ -f ./.env.$APP_ENV ]; then
source ./.env.$APP_ENV;
# shellcheck source=/dev/null
if [ -n "$APP_ENV" ] && [ -f ./.env."$APP_ENV" ]; then
source ./.env."$APP_ENV";
elif [ -f ./.env ]; then
source ./.env;
fi
Expand Down Expand Up @@ -159,8 +160,7 @@ function sail_is_not_running {
}

# Define Docker Compose command prefix...
docker compose &> /dev/null
if [ $? == 0 ]; then
if docker compose &> /dev/null; then
DOCKER_COMPOSE=(docker compose)
else
DOCKER_COMPOSE=(docker-compose)
Expand Down Expand Up @@ -560,7 +560,7 @@ elif [ "$1" == "open" ]; then
shift 1

if [ "$EXEC" == "yes" ]; then
open $APP_URL
open "$APP_URL"

exit
else
Expand Down

0 comments on commit c1c8511

Please sign in to comment.