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