fix: install-yubico-piv-checker: ppc64le installation was broken

This commit is contained in:
Stéphane Lesimple 2021-03-17 13:42:54 +00:00 committed by Stéphane Lesimple
parent 255f0684cc
commit 7dabfc7135
2 changed files with 3 additions and 5 deletions

View file

@ -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"

View file

@ -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