hamburger/VERSION

10 lines
199 B
Plaintext
Raw Normal View History

2023-09-25 19:44:16 +02:00
#!/bin/sh
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION