Switch version file from .txt to .yaml; add target tuple to version.yml

This commit is contained in:
Michael Vines
2019-03-13 16:11:50 -07:00
parent 7685ba2805
commit fa1ea1c458
2 changed files with 23 additions and 5 deletions

View File

@@ -286,7 +286,7 @@ start() {
set -x
rm -rf "$SOLANA_ROOT"/solana-release
(cd "$SOLANA_ROOT"; tar jxv) < "$tarballFilename"
cat "$SOLANA_ROOT"/solana-release/version.txt
cat "$SOLANA_ROOT"/solana-release/version.yml
)
;;
local)
@@ -371,7 +371,10 @@ start() {
case $deployMethod in
tar)
networkVersion="$(
tail -n1 "$SOLANA_ROOT"/solana-release/version.txt || echo "tar-unknown"
(
set -o pipefail
grep "^version: " "$SOLANA_ROOT"/solana-release/version.yml | head -n1 | cut -d\ -f2
) || echo "tar-unknown"
)"
;;
local)