From 78c3e98f264dc2f5b33c8a6fc7fc075f9096a4f2 Mon Sep 17 00:00:00 2001 From: Dario Del Piano Date: Tue, 15 Nov 2022 11:43:27 +0000 Subject: [PATCH] #40 fixing installation script --- installation.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/installation.sh b/installation.sh index f89ba787..f084c878 100755 --- a/installation.sh +++ b/installation.sh @@ -72,7 +72,15 @@ elif [ "$UPDATE" = true ]; then cd $PSYVIEW fi yalc add @metacell/meta-diagram - yarn + yarn upgrade @metacell/meta-diagram + test=$(grep 'FAST_REFRESH=' .env | sed "s/FAST_REFRESH=//") + sed '/FAST_REFRESH/d' .env > temp_env + mv temp_env .env + if [[ "$test" == 'false' ]]; then + echo 'FAST_REFRESH=true' >> .env + else + echo 'FAST_REFRESH=false' >> .env + fi yarn run start else echo " - The script can be run in update (-u / --update) or install (-i / --install) mode."