Skip to content

Instantly share code, notes, and snippets.

@wheatdog
Created June 17, 2019 08:00
Show Gist options
  • Save wheatdog/05cc483ed37dc4c1e283b49f56c2aa1b to your computer and use it in GitHub Desktop.
Save wheatdog/05cc483ed37dc4c1e283b49f56c2aa1b to your computer and use it in GitHub Desktop.
Install rclone without root
#!/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