summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 10:52:27 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 10:52:27 (EST)
commit5236a7dcbefdbc2431949ff662a6217b3ebd91fd (patch)
tree609ceaa8202593e59a578cb8dd48a994b0ba9291
parente537b8c31e89c3caa7e5a6caab28f81c05ce9bd2 (diff)
profile_plat_arches(): Clean platform name
Fixes error if platform name contains a hyphen.
-rw-r--r--src/profile/proteanos.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index f44de08..54ad667 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -141,6 +141,7 @@ prof_proteanos_plat_arches()
local plat="${1}"
shift 1
+ plat="$(printf '%s' "${plat}" | tr -c '[a-z0-9]' '_')"
eval "printf '%s\\n' \${_prof_proteanos_archplat_arches_${plat}}"
}