Fix while conditions

This commit is contained in:
maride 2017-09-03 17:07:55 +02:00
parent ec371ee383
commit 65b74e5279

View File

@ -58,15 +58,16 @@ do
# in any case, run it once
rerun=1
while [ $rerun ]; do
while [ $rerun -eq 1 ]; do
echo -n "=> Do you want to run flavour '$flavour'? (y/N) "
read answer
rerun=0;
if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then
echo "=> Running flavour '$flavour'..."
pushd $flavour
source ./install.sh
rerun=0;
if [ "$amf_return" -ne 0 ]; then
echo "=> Flavour failed. :( Rerun? (Y/n) "
read answer