mempool-startos/get-tag.sh
2022-03-10 15:32:45 -08:00

5 lines
360 B
Bash
Executable File

export MEMPOOL_VERSION=$(awk 'match($0,/version:[^ ]*/){ print substr($0, RSTART+9,5)}' manifest.yaml | awk 'NR == 1')
echo 'v'$MEMPOOL_VERSION
# Old method of getting the Version number from mempool/mempool, does not work.
#git --git-dir=mempool/.git name-rev --tags --name-only $(git --git-dir=mempool/.git rev-parse HEAD) | sed 's|\([^\^]*\)\(\^0\)$|\1|g'