Created
June 17, 2019 08:00
-
-
Save wheatdog/05cc483ed37dc4c1e283b49f56c2aa1b to your computer and use it in GitHub Desktop.
Install rclone without root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
trap_exit() { | |
if [[ ! -o xtrace ]]; then | |
rm -rf "$tmp" | |
fi | |
} | |
tmp=$(mktemp -dt) | |
trap 'trap_exit' EXIT | |
cd "$tmp" | |
curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip | |
unzip rclone-current-linux-amd64.zip | |
cd rclone-*-linux-amd64 | |
mkdir -p ~/.local/bin/ | |
cp rclone ~/.local/bin/ | |
mkdir -p ~/.local/share/man/man1 | |
cp rclone.1 ~/.local/share/man/man1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment