install with pipx, do not clone .userconfig if already available
This commit is contained in:
parent
875e6a4831
commit
f28e231185
11
install.sh
11
install.sh
@ -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
|
||||||
|
if [ ! -e ~/.userconfig ]; then
|
||||||
git clone git@git.lys.is:lysis/userconfig.git ~/.userconfig
|
git clone git@git.lys.is:lysis/userconfig.git ~/.userconfig
|
||||||
mkdir ~/.config
|
fi
|
||||||
PYTHONPATH=~/.local/lib ~/.local/bin/userconfig.py
|
userconfig
|
||||||
else
|
else
|
||||||
echo "No pip3 installed, cannot proceed."
|
echo "No pipx installed, cannot proceed."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user