Skip to content

Commit

Permalink
fetch-configlet: allow supporting powerpc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ee7 committed Aug 22, 2023
1 parent 4b13ee7 commit e2f9960
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/fetch-configlet
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ get_download_url() {
unamem="$(uname -m)"
local arch
case "${unamem}" in
aarch64|arm64) arch='arm64' ;;
x86_64) arch='x86-64' ;;
*686*) arch='i386' ;;
*386*) arch='i386' ;;
*) arch="${unamem}" ;;
aarch64|arm64) arch='arm64' ;;
x86_64) arch='x86-64' ;;
*686*) arch='i386' ;;
*386*) arch='i386' ;;
ppc) arch='powerpc' ;;
ppc64) arch='powerpc64' ;;
ppc64le) arch='powerpc64le' ;;
*) arch="${unamem}" ;;
esac
local suffix="${os}_${arch}.${ext}"
curl "${curlopts[@]}" --header 'Accept: application/vnd.github.v3+json' "${latest}" |
Expand Down

0 comments on commit e2f9960

Please sign in to comment.