Skip to content
Snippets Groups Projects
Unverified Commit 3049cf26 authored by Oliver Smith's avatar Oliver Smith
Browse files

install_pmbootstrap.sh: allow to override tag/url

There's a pmbootstrap regression that broke pmaports.git CI. Allow to
override the tag, so I can verify my fix.
parent 4251e202
Branches
Tags
No related merge requests found
Pipeline #144560 failed
......@@ -3,9 +3,8 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# usage: install_pmbootstrap.sh [ADDITIONAL_PACKAGE, ...]
# pmbootstrap tag/branch and url
tag="master"
url="https://gitlab.com/postmarketOS/pmbootstrap.git"
: ${PMBOOTSTRAP_TAG:="master"}
: ${PMBOOTSTRAP_URL:="https://gitlab.com/postmarketOS/pmbootstrap.git"}
# pmaports: either checked out in current dir, or let pmbootstrap download it
pmaports="$(cd "$(dirname "$0")"/..; pwd -P)"
......@@ -39,10 +38,10 @@ chown -R pmos:pmos .
echo 'pmos ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
# Download pmbootstrap (to /tmp/pmbootstrap)
echo "Downloading pmbootstrap ($tag): $url"
echo "Downloading pmbootstrap ($PMBOOTSTRAP_TAG): $PMBOOTSTRAP_URL"
cd /tmp
git clone -q "$url"
git -C pmbootstrap checkout -q "$tag"
git clone -q "$PMBOOTSTRAP_URL"
git -C pmbootstrap checkout -q "$PMBOOTSTRAP_TAG"
# Install to $PATH and init
ln -s /tmp/pmbootstrap/pmbootstrap.py /usr/local/bin/pmbootstrap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment