prevent infinite loop when launching developer's console

This commit is contained in:
Lincoln Stein 2023-03-23 21:10:38 -04:00 committed by Eugene Brodsky
parent b792b7d68c
commit b4e7fc0d1d

View File

@ -24,9 +24,9 @@ if [ "$(uname -s)" == "Darwin" ]; then
export PYTORCH_ENABLE_MPS_FALLBACK=1 export PYTORCH_ENABLE_MPS_FALLBACK=1
fi fi
if [ "$0" != "bash" ]; then
while true while true
do do
if [ "$0" != "bash" ]; then
echo "Do you want to generate images using the" echo "Do you want to generate images using the"
echo "1. command-line interface" echo "1. command-line interface"
echo "2. browser-based UI" echo "2. browser-based UI"
@ -87,9 +87,9 @@ if [ "$0" != "bash" ]; then
echo "Invalid selection" echo "Invalid selection"
exit;; exit;;
esac esac
done
else # in developer console else # in developer console
python --version python --version
echo "Press ^D to exit" echo "Press ^D to exit"
export PS1="(InvokeAI) \u@\h \w> " export PS1="(InvokeAI) \u@\h \w> "
fi fi
done