mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
#678 also accept node v10
This commit is contained in:
parent
cbdb96b549
commit
638dddb777
1 changed files with 5 additions and 2 deletions
|
@ -39,10 +39,13 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||
sudo apt-get install -y nodejs
|
||||
echo ""
|
||||
|
||||
# check if nodeJS was installed
|
||||
# check if nodeJS was installed (v11 or v10)
|
||||
nodeJSInstalled=$(node -v | grep -c "v11.")
|
||||
if [ ${nodeJSInstalled} -eq 0 ]; then
|
||||
echo "FAIL - Was not able to install nodeJS 11"
|
||||
nodeJSInstalled=$(node -v | grep -c "v10.")
|
||||
fi
|
||||
if [ ${nodeJSInstalled} -eq 0 ]; then
|
||||
echo "FAIL - Was not able to install nodeJS 10/11"
|
||||
echo "ABORT - RTL install"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue