I'm building a menu for my frequently accessed CLI commands, and I'm trying to work it out so that if a function fails where there were several in the menu option, it will return to the main menu.
Where the following script calls exit 1, what would I put to cause it to skip the remaining commands in the sequence without exiting the script?
Code:cd /media/IKUSB || { echo -e " " echo -e "\t Failed to change directory"; echo -e "\t Has the Ironkey been mounted & Unlocked?"; echo -e " "; echo -e "\t Script will exit upon pressing Enter."; echo -e " "; read enterKey; exit 1; };
Bookmarks