Created
June 13, 2020 02:21
-
-
Save Steap/b43c6bbcf54d57657c0a745531573a61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
set -u | |
VENV=/tmp/.upt-venv | |
create_venv () { | |
echo "[+] Creating virtual environment" | |
python3 -m venv $VENV | |
. $VENV/bin/activate | |
pip install wheel | |
echo "[+] Installing upt" | |
pip install git+https://framagit.org/upt/upt@update | |
echo "[+] Installing upt-pypi" | |
pip install upt-pypi | |
echo "[+] Installing upt-rubygems" | |
pip install upt-rubygems | |
echo "[+] Installing upt-macports" | |
pip install git+https://www.github.com/Steap/upt-macports@feature/update | |
} | |
[ -d $VENV ] || create_venv && deactivate | |
. $VENV/bin/activate | |
echo "Running $(which upt) $@" | |
upt $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment