From e4cab7cb868c4ba7683550fd552b1b3534914fd1 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 26 Sep 2017 15:32:25 -0400 Subject: [PATCH] Use grep -e instead of egrep and delete the package-lock.json if it exists before running npm install in the init.sh --- init.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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