Skip to content

Commit

Permalink
#40 fixing installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Nov 15, 2022
1 parent fd610d9 commit 78c3e98
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 78c3e98

Please sign in to comment.