budibase/scripts/getCurrentVersion.sh

8 lines
178 B
Bash
Raw Normal View History

2023-07-05 14:11:32 +02:00
#!/bin/bash
version=$(cat lerna.json \
| grep version \
| head -1 \
| awk -F: '{gsub(/"/,"",$2);gsub(/[[:space:]]*/,"",$2); print $2}' \
| sed 's/[",]//g')
echo $version