Skip to content

Commit b4e7fc0

Browse files
lsteinebr
authored andcommitted
prevent infinite loop when launching developer's console
1 parent b792b7d commit b4e7fc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

installer/templates/invoke.sh.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ if [ "$(uname -s)" == "Darwin" ]; then
2424
export PYTORCH_ENABLE_MPS_FALLBACK=1
2525
fi
2626

27-
while true
28-
do
2927
if [ "$0" != "bash" ]; then
28+
while true
29+
do
3030
echo "Do you want to generate images using the"
3131
echo "1. command-line interface"
3232
echo "2. browser-based UI"
@@ -87,9 +87,9 @@ if [ "$0" != "bash" ]; then
8787
echo "Invalid selection"
8888
exit;;
8989
esac
90+
done
9091
else # in developer console
9192
python --version
9293
echo "Press ^D to exit"
9394
export PS1="(InvokeAI) \u@\h \w> "
9495
fi
95-
done

0 commit comments

Comments
 (0)