From df361406fcbc4dd979fbe6f44ac102133adcb775 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Mon, 19 Jun 2017 07:24:18 +0100 Subject: [PATCH] Update rtgetscripts --- scripts/rtgetscripts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/rtgetscripts b/scripts/rtgetscripts index 8a90e6d..b427fcf 100644 --- a/scripts/rtgetscripts +++ b/scripts/rtgetscripts @@ -12,7 +12,12 @@ PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin blob=master RTDIR=https://raw.githubusercontent.com/arakasi72/rtinst/$blob -script_dir=https://github.com/arakasi72/rtinst/trunk/scripts + +if [ $blob = "master" ]; then + script_dir=https://github.com/arakasi72/rtinst/trunk/scripts +else + script_dir=https://github.com/arakasi72/rtinst/branches/$blob/scripts +fi check_url() { if [[ `wget -S --spider $1 2>&1 | grep 'HTTP/1.1 200 OK'` ]]; then echo "true"; fi