rtl: fix check for npm 7 #2124

This commit is contained in:
openoms 2021-09-22 20:57:14 +01:00
parent 880db21993
commit e83196d903
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -92,7 +92,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
fi
npm7installed=$(npm -v 2>/dev/null | grep -c "7.")
if ! [ ${npm7installed} -eq 0 ]; then
if [ ${npm7installed} -eq 0 ]; then
# needed for RTL
# https://github.blog/2021-02-02-npm-7-is-now-generally-available/
echo "# Update npm to v7"