summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViljami Ilola <+@hix.fi>2024-03-31 11:41:52 +0300
committerViljami Ilola <+@hix.fi>2024-03-31 11:41:52 +0300
commitabebd302f91e419046eeac209ef3a0c497c6445d (patch)
treec5345e9f671b12744f63049411e63f4d2a63bbb0
parent1a4422be08ef234ed0666f13b13fc03506c197b3 (diff)
ensure ~/.local/bin to be in path for ./dev.sh
-rwxr-xr-xdev.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/dev.sh b/dev.sh
index 75f756a..be5ea86 100755
--- a/dev.sh
+++ b/dev.sh
@@ -19,6 +19,10 @@ all Do it all: pytest, coverage report in firefox and pylint
install Build poetry package and install it for current user
" && exit 0
+# Ensure ~/.local/bin in the PATH.
+echo $PATH | grep /.local/bin > /dev/null \
+ || export PATH="$HOME/.local/bin:$PATH"
+
PIP=`which pipx`
[ x$PIP = x ] && PIP=`which pip`
[ x$PIP = x ] \