Ask to re-run a failed step
This commit is contained in:
parent
9b7374f768
commit
c5bae37f33
12
install.sh
12
install.sh
@ -55,6 +55,10 @@ done
|
|||||||
|
|
||||||
for flavour in flavours/*.flavour
|
for flavour in flavours/*.flavour
|
||||||
do
|
do
|
||||||
|
# in any case, run it once
|
||||||
|
rerun=1
|
||||||
|
|
||||||
|
while [ $rerun ]; 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
|
||||||
|
|
||||||
@ -62,12 +66,18 @@ do
|
|||||||
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. :("
|
echo "=> Flavour failed. :( Rerun? (Y/n) "
|
||||||
|
read answer
|
||||||
|
if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then
|
||||||
|
rerun=1;
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
done
|
||||||
|
|
||||||
echo -n "=> Finished \o/ reboot now? (Y/n) "
|
echo -n "=> Finished \o/ reboot now? (Y/n) "
|
||||||
read answer
|
read answer
|
||||||
|
Loading…
Reference in New Issue
Block a user