Hi. Simple question here about bash scripts.
I have a script I use for scanning documents. Due to a hardware problem I can't scan in batches. So instead of exiting after each document, I want the script to loop and ask "Start again?".
This is as far as I've got:
Code:
dialog --yesno "Go ahead?"
if [ $? -eq 0 ] ; then
[script here]
else exit
fi
If I can loop that, then there will be a way to get out after each scan. But even the dialog is overkill, surely...?
Ideas appreciated!