diff --git a/init.sh b/init.sh index eebd972..64321e3 100755 --- a/init.sh +++ b/init.sh @@ -74,7 +74,7 @@ php artisan route:clear msg "Running: ${c_m}php artisan view:clear" php artisan view:clear -egrep -q '^CACHE_BUST=' .env || { +grep -qe '^CACHE_BUST=' .env || { msg "Adding the ${c_y}CACHE_BUST$c_w variable" printf '\n%s\n' 'CACHE_BUST=' >> .env } @@ -87,6 +87,11 @@ sed -i 's|^CACHE_BUST=.*|CACHE_BUST='"$(tr -dc A-Za-z0-9