From 461166d3e35c9b676b0ede235d789af5579ba1de Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 7 Oct 2018 22:50:11 -0600 Subject: [PATCH] single npm install process at a time --- usr/share/install_helper.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 9d819c2..3e59706 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -224,16 +224,20 @@ pushd $TELEBIT_TMP >/dev/null else echo -n "." fi + set +e $tmp_npm install >/dev/null 2>/dev/null & - # ursa is now an entirely optional dependency for key generation - # but very much needed on ARM devices - $tmp_npm install ursa >/dev/null 2>/dev/null & tmp_npm_pid=$! while [ -n "$tmp_npm_pid" ]; do sleep 2 echo -n "." kill -s 0 $tmp_npm_pid >/dev/null 2>/dev/null || tmp_npm_pid="" done + set -e + echo -n "." + $tmp_npm install >/dev/null 2>/dev/null + # ursa is now an entirely optional dependency for key generation + # but very much needed on ARM devices + $tmp_npm install ursa >/dev/null 2>/dev/null || true popd >/dev/null if [ -n "${TELEBIT_DEBUG}" ]; then