install with pipx, do not clone .userconfig if already available
This commit is contained in:
parent
875e6a4831
commit
f28e231185
13
install.sh
13
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
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user