Skip to content

Commit

Permalink
Prepend --quiet with a space to avoid extra characters confusing Lara…
Browse files Browse the repository at this point in the history
…vel installer
  • Loading branch information
mattstauffer committed Nov 9, 2019
1 parent b267127 commit bc8c284
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lambo
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ TERMINAL_EDITORS=("vim" "vi" "nano" "pico" "ed" "emacs" "nvim")
showhelp()
{
printf "${green}"
echo ' __ __
/ / ____ _____ ___ / /_ ____
echo ' __ __
/ / ____ _____ ___ / /_ ____
/ / / __ `/ __ `__ \/ __ \/ __ \
/ /___/ /_/ / / / / / / /_/ / /_/ /
/_____/\__,_/_/ /_/ /_/_.___/\____/
/_____/\__,_/_/ /_/ /_/_.___/\____/
'
echo "${green}Lambo:${reset} Super-powered '${orange}laravel new${reset}' for Laravel and Valet"
echo " "
Expand Down Expand Up @@ -352,17 +352,17 @@ Creating new Laravel app ${green}$PROJECTNAME${reset}
"

if [[ "$QUIET" = true ]]; then
QUIET="--quiet"
QUIET=" --quiet"
SILENT="--silent"
else
QUIET=""
SILENT=""
fi

if [[ "$DEVELOP" = true ]]; then
laravel new "$PROJECTNAME" "$QUIET" --dev
laravel new "$PROJECTNAME""$QUIET" --dev
else
laravel new "$PROJECTNAME" "$QUIET"
laravel new "$PROJECTNAME""$QUIET"
fi

cd "$PROJECTNAME" || exit
Expand All @@ -377,7 +377,7 @@ if [[ "$FRONTEND" != "" ]]; then
echo "
${green}Installing ${orange}laravel/ui${green}...${reset}
"
composer require laravel/ui "$QUIET"
composer require laravel/ui"$QUIET"

if [[ "$FRONTEND" = "bootstrap" ]]; then
php artisan ui bootstrap
Expand All @@ -396,9 +396,9 @@ if [[ "$AUTH" = true ]]; then
echo "
${green}Installing ${orange}laravel/ui${green}...${reset}
"
composer require laravel/ui "$QUIET"
composer require laravel/ui"$QUIET"
fi

php artisan ui:auth
fi

Expand Down Expand Up @@ -436,7 +436,7 @@ php artisan key:generate --ansi

git init
git add .
git commit -m "$MESSAGE" "$QUIET"
git commit -m "$MESSAGE""$QUIET"

if [[ "$LINK" = true ]]; then
valet link "$PROJECTNAME"
Expand Down

0 comments on commit bc8c284

Please sign in to comment.