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