Skip to content

Commit

Permalink
fix(scripts): update upgrade check
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Sep 20, 2024
1 parent 5ab197b commit 6ed89cf
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions script/upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,14 +405,6 @@ function bins() {
done
}

#function deploy() {
# local host
#
# host="$1"
#
# rsync
#}

case "$1" in
init)
shift
Expand All @@ -426,10 +418,6 @@ case "$1" in
shift
clean
;;
# deploy)
# shift
# deploy
# ;;
upgrade-from-release)
shift
upgrades_dir=${ROOT_DIR}/upgrades/software
Expand All @@ -453,7 +441,11 @@ case "$1" in
upgrade_name=$(find "${upgrades_dir}" -mindepth 1 -maxdepth 1 -type d | awk -F/ '{print $NF}' | sort -r | head -n 1)

# shellcheck disable=SC2086
$semver validate $upgrade_name
is_valid=$($semver validate $upgrade_name)
if [[ $is_valid != "valid" ]]; then
echoerr "upgrade name \"$upgrade_name\" does not comply with semver spec"
exit 1
fi

# current git reference is matching upgrade name. looks like release has been cut
# so lets run the last test
Expand Down

0 comments on commit 6ed89cf

Please sign in to comment.