Ask to re-run a failed step

This commit is contained in:
maride 2017-09-03 16:52:51 +02:00
parent 9b7374f768
commit c5bae37f33

View File

@ -55,6 +55,10 @@ done
for flavour in flavours/*.flavour
do
# in any case, run it once
rerun=1
while [ $rerun ]; do
echo -n "=> Do you want to run flavour '$flavour'? (y/N) "
read answer
@ -62,11 +66,17 @@ do
echo "=> Running flavour '$flavour'..."
pushd $flavour
source ./install.sh
rerun=0;
if [ "$amf_return" -ne 0 ]; then
echo "=> Flavour failed. :("
echo "=> Flavour failed. :( Rerun? (Y/n) "
read answer
if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then
rerun=1;
fi
fi
popd
fi
done
done
echo -n "=> Finished \o/ reboot now? (Y/n) "