From 7dabfc713537d13477cc432a02e233a60b8a526e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 17 Mar 2021 13:42:54 +0000 Subject: [PATCH] fix: install-yubico-piv-checker: ppc64le installation was broken --- bin/admin/install-yubico-piv-checker.sh | 6 +----- lib/shell/install.inc | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/admin/install-yubico-piv-checker.sh b/bin/admin/install-yubico-piv-checker.sh index 17860f1..f7bf1a8 100755 --- a/bin/admin/install-yubico-piv-checker.sh +++ b/bin/admin/install-yubico-piv-checker.sh @@ -22,11 +22,7 @@ action_static() { set_archre os=$(uname -s | tr '[:upper:]' '[:lower:]') - if [ "$arch" = "x86_64" ] || [ "$arch" = "amd64" ]; then - set_download_url "/${PROGRAM_NAME}.*_${os}_(x86_|amd)64\\.tar\\.gz$" - else - set_download_url "/${PROGRAM_NAME}.*_${os}_$arch\\.tar\\.gz$" - fi + set_download_url "/${PROGRAM_NAME}.*_${os}_${archre}\\.tar\\.gz$" prepare_temp_folder _download "$url" diff --git a/lib/shell/install.inc b/lib/shell/install.inc index 048f13f..d3e41ed 100644 --- a/lib/shell/install.inc +++ b/lib/shell/install.inc @@ -112,6 +112,8 @@ set_archre() { if [ "$arch" = "x86_64" ] || [ "$arch" = "amd64" ]; then archre="(x86_|amd)64" + elif [ "$arch" = "ppc64el" ]; then + archre="ppc64(le|el)" else archre="$arch" fi