From 5236a7dcbefdbc2431949ff662a6217b3ebd91fd Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 16 Jan 2021 10:52:27 -0500 Subject: profile_plat_arches(): Clean platform name Fixes error if platform name contains a hyphen. --- (limited to 'src/profile') 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}}" } -- cgit v0.9.1