Skip to content

Commit c36438e

Browse files
committed
install rclone base on architecture
1 parent d75b0a3 commit c36438e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/install_rclone.bash

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ set -o pipefail # don't hide errors within pipes
1010
IFS=$'\n\t'
1111

1212
R_CLONE_VERSION="1.63.1"
13-
curl --silent --location --remote-name "https://downloads.rclone.org/v${R_CLONE_VERSION}/rclone-v${R_CLONE_VERSION}-linux-amd64.deb"
14-
dpkg --install "rclone-v${R_CLONE_VERSION}-linux-amd64.deb"
15-
rm "rclone-v${R_CLONE_VERSION}-linux-amd64.deb"
13+
TARGETARCH="${TARGETARCH:-amd64}"
14+
15+
echo "platform ${TARGETARCH}"
16+
17+
curl --silent --location --remote-name "https://downloads.rclone.org/v${R_CLONE_VERSION}/rclone-v${R_CLONE_VERSION}-linux-${TARGETARCH}.deb"
18+
dpkg --install "rclone-v${R_CLONE_VERSION}-linux-${TARGETARCH}.deb"
19+
rm "rclone-v${R_CLONE_VERSION}-linux-${TARGETARCH}.deb"
1620
rclone --version

0 commit comments

Comments
 (0)