mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-24 14:16:36 +00:00
19 lines
303 B
Bash
19 lines
303 B
Bash
|
#! /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}"
|