aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-03-23 18:01:28 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-03-23 18:01:28 -0400
commit8e0a33c1aadabd91765594e8d9d5c3a53933b26d (patch)
tree0b041b29c99e19471c7219018a95641579e38b27 /build.sh
parentcf6dc609b72fd9b388c987ae38c0a8bf95168d15 (diff)
Handle single- or triple-part platform names
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 8256f9ea3..86c844793 100755
--- a/build.sh
+++ b/build.sh
@@ -24,7 +24,7 @@ usage() {
list_platforms() {
declare -a platforms
platforms=(
- $( find deployment -maxdepth 1 -mindepth 1 -name "build.*" | awk -F'.' '{ $1=""; printf $2; if ($3 != ""){ printf "." $3; } print ""; }' | sort )
+ $( find deployment -maxdepth 1 -mindepth 1 -name "build.*" | awk -F'.' '{ $1=""; printf $2; if ($3 != ""){ printf "." $3; }; if ($4 != ""){ printf "." $4; }; print ""; }' | sort )
)
echo -e "Valid platforms:"
echo