From f4b515ebf584b0beb6b2fb618233cae34100ff95 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Mon, 19 Feb 2018 16:33:41 +0100 Subject: [PATCH] add option -branch --- update-from-repo.sh | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/update-from-repo.sh b/update-from-repo.sh index 0a1b7d4f1..d813974dc 100755 --- a/update-from-repo.sh +++ b/update-from-repo.sh @@ -3,7 +3,7 @@ # Update webmin/usermin to the latest develop version from GitHub repo # inspired by authentic-theme/theme-update.sh script, thanks qooob # -# Version 1.5.1, 2018-02-17 +# Version 1.5.2, 2018-02-19 # # Kay Marquardt, kay@rrr.de, https://github.com/gandelwartz ############################################################################# @@ -48,6 +48,7 @@ fi HOST="https://github.com" REPO="webmin/$PROD" GIT="git" +BRANCH="" # temporary locations for git clone WTEMP="${DIR}/.~files/webadmin" @@ -60,7 +61,7 @@ LTEMP="${DIR}/.~lang" # help requested output usage if [[ "$1" == "-h" || "$1" == "--help" ]] ; then echo -e "${NC}${ORANGE}This is the unofficial webmin update script${NC}" - echo "Usage: ${IAM} [-force] [-repo:username/xxxmin] [-release[:number]] [-file file ...]" + echo "Usage: ${IAM} [-force] [-repo:username/xxxmin] [-branch:xxx] [-release[:number]] [-file file ...]" [[ "$1" == "--help" ]] && cat <