Skip to content

Commit 78922e4

Browse files
committed
better script
1 parent a1b67f8 commit 78922e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/predict.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ -f venv/bin/pip3 ]]; then
1212
[ -z "$1" ] || find . -name main.py -exec ./venv/bin/python3 {} "$1" \;
1313
deactivate
1414
elif [[ -f /.dockerenv ]]; then
15-
export PATH="$PATH:/root/.local/bin"
15+
[[ ":$PATH:" == *":/root/.local/bin:"* ]] || export PATH=$PATH:/root/.local/bin
1616
pip3 install -r requirements.txt --user --break-system-packages
1717
[ -z "$1" ] || python3 ./main.py "$1"
1818
fi

0 commit comments

Comments
 (0)