From 85bafd1e3a664a4c49030855dffeb1e0dd4a34c8 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Sat, 16 Feb 2019 16:51:23 +0100 Subject: [PATCH] sourcehut helper: Added option to specify pmbootstrap branch --- .sr.ht/install_pmbootstrap.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.sr.ht/install_pmbootstrap.sh b/.sr.ht/install_pmbootstrap.sh index 396da8597..d8f5b7f40 100755 --- a/.sr.ht/install_pmbootstrap.sh +++ b/.sr.ht/install_pmbootstrap.sh @@ -3,7 +3,12 @@ # SPDX-License-Identifier: GPL-3.0-or-later # Config: pmbootstrap tag (or branch) -tag="master" + +if [ "$1" != "" ]; then + tag="$1" +else + tag="master" +fi # Get download URL and pmaports path url="https://gitlab.com/postmarketOS/pmbootstrap/-/archive/$tag/pmbootstrap-$tag.tar.bz2"