mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-26 08:35:02 +08:00
fix: install-yubico-piv-checker: ppc64le installation was broken
This commit is contained in:
parent
255f0684cc
commit
7dabfc7135
2 changed files with 3 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue