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