Skip to content

Commit b3d4707

Browse files
committed
fetch-configlet: support some powerpc platforms
Configlet may never have releases for these. But it's one of the main remaining architecture names that we'd upload with different names than the `uname -m` output. Add support for them now, to avoid an extra Exercism-wide PR for the fetch scripts later.
1 parent 7a02a95 commit b3d4707

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/fetch-configlet

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ get_download_url() {
2626
unamem="$(uname -m)"
2727
local arch
2828
case "${unamem}" in
29-
aarch64|arm64) arch='arm64' ;;
30-
x86_64) arch='x86-64' ;;
31-
*686*) arch='i386' ;;
32-
*386*) arch='i386' ;;
33-
*) arch="${unamem}" ;;
29+
aarch64|arm64) arch='arm64' ;;
30+
x86_64) arch='x86-64' ;;
31+
*686*) arch='i386' ;;
32+
*386*) arch='i386' ;;
33+
ppc) arch='powerpc' ;;
34+
ppc64) arch='powerpc64' ;;
35+
ppc64le) arch='powerpc64le' ;;
36+
*) arch="${unamem}" ;;
3437
esac
3538
local suffix="${os}_${arch}.${ext}"
3639
curl "${curlopts[@]}" --header 'Accept: application/vnd.github.v3+json' "${latest}" |

0 commit comments

Comments
 (0)