Skip to content

Commit

Permalink
clean up initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Nov 2, 2019
1 parent 7983bda commit 3fc2b23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/make_without_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ if [[ "$message" = "" ]]; then
fi

if [[ "$message" = "" ]]; then
echo "Do not know which message to build"
echo "Do not know which message to build."
echo "Try any of:"
echo " make tiny"
echo " make standard"
exit 1
fi

Expand Down
8 changes: 6 additions & 2 deletions src/prepare_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
set -e

if [ ! -e node_modules_docker ]; then
mv node_modules node_modules_host || echo ok
if [ -e node_modules ]; then
mv node_modules node_modules_host
fi
echo "First time operation: installing node packages"
npm install
mv node_modules node_modules_docker
mv node_modules_host node_modules || echo ok
if [ -e node_modules_host ]; then
mv node_modules_host node_modules
fi
fi

0 comments on commit 3fc2b23

Please sign in to comment.