Fix while conditions
This commit is contained in:
parent
ec371ee383
commit
65b74e5279
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user