mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-21 20:56:36 +00:00
19 lines
303 B
Bash
Executable File
19 lines
303 B
Bash
Executable File
#! /bin/bash
|
|
set -ex
|
|
|
|
VERSION="$1"
|
|
ARCH="$2"
|
|
|
|
RCLONE_NAME=rclone-${VERSION}-linux-${ARCH}
|
|
|
|
# Download
|
|
curl -o rclone.zip "https://downloads.rclone.org/${VERSION}/${RCLONE_NAME}.zip"
|
|
|
|
# Install
|
|
unzip rclone.zip
|
|
mv "${RCLONE_NAME}/rclone" /usr/local/bin/
|
|
|
|
# Clean up
|
|
rm rclone.zip
|
|
rm -fr "${RCLONE_NAME}"
|