install with pipx, do not clone .userconfig if already available

This commit is contained in:
Marcus Stoegbauer 2024-04-01 10:59:51 +02:00
parent 875e6a4831
commit f28e231185

View File

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
if type pip3 >/dev/null 2>&1; then if type pipx >/dev/null 2>&1; then
pip3 install --user git+https://git.lys.is/lysis/pyuserconfig.git pipx install git+https://git.lys.is/lysis/pyuserconfig.git
git clone git@git.lys.is:lysis/userconfig.git ~/.userconfig if [ ! -e ~/.userconfig ]; then
mkdir ~/.config git clone git@git.lys.is:lysis/userconfig.git ~/.userconfig
PYTHONPATH=~/.local/lib ~/.local/bin/userconfig.py fi
userconfig
else else
echo "No pip3 installed, cannot proceed." echo "No pipx installed, cannot proceed."
fi fi