From 0ba702ccf44f8883d46804a67f1ceee07b79d6d2 Mon Sep 17 00:00:00 2001 From: Michael C Tiernan - MIT-Research Computing Project Date: Thu, 12 May 2022 15:19:33 -0400 Subject: [PATCH] install: Pre verify sudo authorization "-v" before calling curl. The way this was, the curl interferes with the bash invocation. Here it will authenticate first. --- docs/content/install.md | 4 ++-- docs/content/install.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content/install.md b/docs/content/install.md index 52e63f534..eccea9543 100644 --- a/docs/content/install.md +++ b/docs/content/install.md @@ -26,11 +26,11 @@ using the [rclone selfupdate](/commands/rclone_selfupdate/) command. To install rclone on Linux/macOS/BSD systems, run: - curl https://rclone.org/install.sh | sudo bash + sudo -v ; curl https://rclone.org/install.sh | sudo bash For beta installation, run: - curl https://rclone.org/install.sh | sudo bash -s beta + sudo -v ; curl https://rclone.org/install.sh | sudo bash -s beta Note that this script checks the version of rclone installed first and won't re-download if not needed. diff --git a/docs/content/install.sh b/docs/content/install.sh index 1b854535a..8a8242fee 100755 --- a/docs/content/install.sh +++ b/docs/content/install.sh @@ -12,7 +12,7 @@ set -e #when adding a tool to the list make sure to also add its corresponding command further in the script unzip_tools_list=('unzip' '7z' 'busybox') -usage() { echo "Usage: curl https://rclone.org/install.sh | sudo bash [-s beta]" 1>&2; exit 1; } +usage() { echo "Usage: sudo -v ; curl https://rclone.org/install.sh | sudo bash [-s beta]" 1>&2; exit 1; } #check for beta flag if [ -n "$1" ] && [ "$1" != "beta" ]; then