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