10 lines
199 B
Plaintext
10 lines
199 B
Plaintext
|
#!/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
|