single npm install process at a time
This commit is contained in:
parent
41d8674519
commit
461166d3e3
|
@ -224,16 +224,20 @@ pushd $TELEBIT_TMP >/dev/null
|
||||||
else
|
else
|
||||||
echo -n "."
|
echo -n "."
|
||||||
fi
|
fi
|
||||||
|
set +e
|
||||||
$tmp_npm install >/dev/null 2>/dev/null &
|
$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=$!
|
tmp_npm_pid=$!
|
||||||
while [ -n "$tmp_npm_pid" ]; do
|
while [ -n "$tmp_npm_pid" ]; do
|
||||||
sleep 2
|
sleep 2
|
||||||
echo -n "."
|
echo -n "."
|
||||||
kill -s 0 $tmp_npm_pid >/dev/null 2>/dev/null || tmp_npm_pid=""
|
kill -s 0 $tmp_npm_pid >/dev/null 2>/dev/null || tmp_npm_pid=""
|
||||||
done
|
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
|
popd >/dev/null
|
||||||
|
|
||||||
if [ -n "${TELEBIT_DEBUG}" ]; then
|
if [ -n "${TELEBIT_DEBUG}" ]; then
|
||||||
|
|
Loading…
Reference in New Issue