8 lines
178 B
Bash
8 lines
178 B
Bash
|
#!/bin/bash
|
||
|
version=$(cat lerna.json \
|
||
|
| grep version \
|
||
|
| head -1 \
|
||
|
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
|
||
|
| sed 's/[",]//g')
|
||
|
echo $version
|