浏览代码

Handle single- or triple-part platform names

Joshua M. Boniface 5 年之前
父节点
当前提交
8e0a33c1aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build.sh

+ 1 - 1
build.sh

@@ -24,7 +24,7 @@ usage() {
 list_platforms() {
 list_platforms() {
     declare -a platforms
     declare -a platforms
     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 -e "Valid platforms:"
     echo
     echo