Skip to content

Commit 327fa66

Browse files
author
Victor Machado
committed
add path when pip ensurepath
1 parent 7ffb4a4 commit 327fa66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: install.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ install_pipx() {
296296

297297
# Ensure path for pipx
298298
echo " Ensuring path for pipx"
299-
$HOME/.local/bin/pipx ensurepath >/dev/null 2>&1
299+
if [[ $(command -v pipx) ]]; then
300+
pipx ensurepath >/dev/null 2>&1
301+
else
302+
$HOME/.local/bin/pipx ensurepath >/dev/null 2>&1
303+
fi
304+
300305
echo "...pipx installed"
301306
else
302307
echo "...pipx already installed"

0 commit comments

Comments
 (0)