Fix up single-segment platform names

This commit is contained in:
Joshua M. Boniface 2020-03-23 17:54:17 -04:00
parent 6028bc0f79
commit cf6dc609b7

View File

@ -24,7 +24,7 @@ usage() {
list_platforms() {
declare -a platforms
platforms=(
$( find deployment -maxdepth 1 -mindepth 1 -name "build.*" | awk -F'.' '{ $1=""; print $2 "." $3 }' | sort )
$( find deployment -maxdepth 1 -mindepth 1 -name "build.*" | awk -F'.' '{ $1=""; printf $2; if ($3 != ""){ printf "." $3; } print ""; }' | sort )
)
echo -e "Valid platforms:"
echo