aboutsummaryrefslogblamecommitdiff
path: root/bin/ovsx_package_last_published_version
blob: 80c25c2c4bb9e45c127ebd5005e5b3e893902ee9 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                    
#!/usr/bin/env sh
set -e

PUBLISHER=$1
PACKAGE_NAME=$2

(npx ovsx get --metadata "${PUBLISHER}.${PACKAGE_NAME}" || echo '{"version":"not yet published"}') |
	jq -r .version