Skip to content

Commit 0d4b287

Browse files
committed
fix or-tools release name for rocky linux
Signed-off-by: Sombrio <sombrio@sombrasoft.dev>
1 parent 279bae1 commit 0d4b287

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

etc/DependencyInstaller.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ main() {
11531153
os_id=$(awk -F= '/^ID/{print $2}' /etc/os-release | sed 's/"//g')
11541154
local arch
11551155
arch=$(uname -m)
1156+
local or_tools_arch=${arch}
11561157
local or_tools_distro=""
11571158
local or_tools_version=""
11581159
if [[ "${rhel_version}" == "8" ]]; then
@@ -1163,14 +1164,17 @@ main() {
11631164
fi
11641165
elif [[ "${rhel_version}" == "9" ]]; then
11651166
or_tools_version="9"
1167+
if [[ "${arch}" == "x86_64" ]]; then
1168+
or_tools_arch="amd64"
1169+
fi
11661170
if [[ "${os_id}" == "almalinux" || "${os_id}" == "rocky" ]]; then
1167-
or_tools_distro="${os_id^}" # Capitalize first letter
1171+
or_tools_distro="${os_id}"
11681172
else
11691173
or_tools_distro="rockylinux"
11701174
warn "Defaulting to rockylinux or-tools package for RHEL 9 compatible system."
11711175
fi
11721176
fi
1173-
_install_or_tools "${or_tools_distro}" "${or_tools_version}" "${arch}" "${SKIP_SYSTEM_OR_TOOLS}"
1177+
_install_or_tools "${or_tools_distro}" "${or_tools_version}" "${or_tools_arch}" "${SKIP_SYSTEM_OR_TOOLS}"
11741178
fi
11751179
;;
11761180
"Darwin")

0 commit comments

Comments
 (0)