mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
prevent infinite loop when launching developer's console
This commit is contained in:
parent
b792b7d68c
commit
b4e7fc0d1d
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user