Skip to content

Instantly share code, notes, and snippets.

@mayank160920
Forked from wheatdog/install.sh
Created January 8, 2023 17:02
Show Gist options
  • Select an option

  • Save mayank160920/66582351d8c6c2c12dd80cf75f733fd6 to your computer and use it in GitHub Desktop.

Select an option

Save mayank160920/66582351d8c6c2c12dd80cf75f733fd6 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