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

install_pmbootstrap.sh: fix crash if pmbootstrap was cloned already

Remove /tmp/pmbootstrap if it exists, and create the symlink to
/tmp/pmbootstrap/pmbootstrap.py with force.
parent 306ced8a
No related branches found
No related tags found
No related merge requests found
......@@ -82,11 +82,12 @@ fi
# Download pmbootstrap (to /tmp/pmbootstrap)
echo "Downloading pmbootstrap ($PMBOOTSTRAP_TAG): $PMBOOTSTRAP_URL"
cd /tmp
rm -rf pmbootstrap
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
ln -sf /tmp/pmbootstrap/pmbootstrap.py /usr/local/bin/pmbootstrap
echo "Initializing pmbootstrap"
if ! su pmos -c "yes '' | pmbootstrap \
$pmaports_arg \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment