Fix Borg CLI binary naming for different architectures, specifically correcting aarch64 to use glibc235 and -gh suffix
This commit is contained in:
@@ -351,8 +351,23 @@ install_borg_from_binary() {
|
||||
local arch="$1"
|
||||
local version="$2"
|
||||
|
||||
# Borg uses different naming convention: borg-linux-glibc231-x86_64
|
||||
local binary_name="borg-linux-glibc231-$arch"
|
||||
# Borg uses different naming conventions based on architecture
|
||||
local binary_name
|
||||
case "$arch" in
|
||||
x86_64)
|
||||
binary_name="borg-linux-glibc231-x86_64"
|
||||
;;
|
||||
aarch64)
|
||||
binary_name="borg-linux-glibc235-arm64-gh"
|
||||
;;
|
||||
armv7)
|
||||
binary_name="borg-linux-glibc231-armv7"
|
||||
;;
|
||||
*)
|
||||
print_error "Unsupported architecture: $arch"
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
local download_url="https://github.com/$GITHUB_REPO/releases/download/$version/$binary_name"
|
||||
|
||||
download_file "$download_url" "$binary_name"
|
||||
|
||||
Reference in New Issue
Block a user