b59f8b8b4c
* adding CRT to main branch * cleanup * um i dont know how that got removed but heres the fix * add vault.service Co-authored-by: Kyle Penfound <kpenfound11@gmail.com>
13 lines
361 B
Bash
Executable file
13 lines
361 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
version_file=$1
|
|
version=$(awk '$1 == "Version" && $2 == "=" { gsub(/"/, "", $3); print $3 }' < "${version_file}")
|
|
prerelease=$(awk '$1 == "VersionPrerelease" && $2 == "=" { gsub(/"/, "", $3); print $3 }' < "${version_file}")
|
|
|
|
if [ -n "$prerelease" ]; then
|
|
echo "${version}-${prerelease}"
|
|
else
|
|
echo "${version}"
|
|
fi
|