From 94450578ebdbf9d1ea5f238ee7afe1a76a30dd41 Mon Sep 17 00:00:00 2001 From: Jandalf81 Date: Thu, 2 Aug 2018 18:57:10 +0200 Subject: [PATCH] Changed download location to GitHub Added parameter for branch --- rclone_script-install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rclone_script-install.sh b/rclone_script-install.sh index 148a11a..f816fb0 100644 --- a/rclone_script-install.sh +++ b/rclone_script-install.sh @@ -11,6 +11,8 @@ UNDERLINE=$(tput smul) # global variables +url="https://github.com/Jandalf81/rclone_script/blob" +branch="master" remotebasedir = "" beta="$1" @@ -246,7 +248,7 @@ installRCLONE_SCRIPT () printf "${NORMAL} Getting RCLONE_SCRIPT... " { # try - retval=$(wget -q -N -P ~/scripts https://www.dropbox.com/s/1ksthbt2ihw67h4/rclone_script.sh 2>&1) && + retval=$(wget -q -N -P ~/scripts ${url}/{$branch}/rclone_script.sh 2>&1) && retval=$(sudo chmod 755 ~/scripts/rclone_script.sh 2>&1) && printf "${GREEN}Done\n" @@ -265,7 +267,7 @@ installRCLONE_SCRIPT () printf "${NORMAL} Getting RCLONE_SCRIPT-FULLSYNC... " { # try - retval=$(wget -q -N -P ~/RetroPie/retropiemenu https://www.dropbox.com/s/vz4jl01zkryx0id/rclone_script-fullsync.sh 2>&1) && + retval=$(wget -q -N -P ~/RetroPie/retropiemenu ${url}/{$branch}/rclone_script-fullsync.sh 2>&1) && retval=$(sudo chmod 755 ~/RetroPie/retropiemenu/rclone_script-fullsync.sh 2>&1) && printf "${GREEN}Done\n" @@ -300,7 +302,7 @@ installRCLONE_SCRIPT () printf "${NORMAL} Getting UNINSTALL script... " { # try - retval=$(wget -q -N -P ~/scripts https://www.dropbox.com/s/qrysm9gxb87081k/rclone_script-uninstall.sh 2>&1) && + retval=$(wget -q -N -P ~/scripts ${url}/{$branch}/rclone_script-uninstall.sh 2>&1) && retval=$(sudo chmod 755 ~/scripts/rclone_script-uninstall.sh 2>&1) && printf "${GREEN}Done\n"