Remove dependency to npm in update check

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-11-17 14:25:25 +01:00
parent 7a4545f24a
commit 8282bfc046
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -6,7 +6,7 @@ PKG=$(awk -F '=' '/pkgname=/{ print $2 }' PKGBUILD)
# Get latest version
VER=$(
npm view @babel/eslint-parser dist-tags.latest
curl -sSf 'https://registry.npmjs.org/@babel/eslint-parser/latest' | jq -r '.version'
)
[[ -n $VER ]] || exit 1