#!/bin/sh
process_install()
{
echo "Performing process_install() commands, using arguments [${*}]..."
}
process_exit()
{
echo "Performing process_exit() commands, using arguments [${*}]..."
}
for choice in true false file_not_found
do
if [ "$choice" = "true" ]
then
process_install foo bar
elif [ "$choice" = "false" ]
then
process_exit baz qux
else
echo "Invalid choice [${choice}]..."
fi
done
IyEvYmluL3NoCgpwcm9jZXNzX2luc3RhbGwoKQp7CiAgICBlY2hvICJQZXJmb3JtaW5nIHByb2Nlc3NfaW5zdGFsbCgpIGNvbW1hbmRzLCB1c2luZyBhcmd1bWVudHMgWyR7Kn1dLi4uIgp9Cgpwcm9jZXNzX2V4aXQoKQp7CiAgICBlY2hvICJQZXJmb3JtaW5nIHByb2Nlc3NfZXhpdCgpIGNvbW1hbmRzLCB1c2luZyBhcmd1bWVudHMgWyR7Kn1dLi4uIgp9Cgpmb3IgY2hvaWNlIGluIHRydWUgZmFsc2UgZmlsZV9ub3RfZm91bmQKZG8KICAgIGlmIFsgIiRjaG9pY2UiID0gInRydWUiIF0KICAgIHRoZW4KICAgICAgICBwcm9jZXNzX2luc3RhbGwgZm9vIGJhcgogICAgZWxpZiBbICIkY2hvaWNlIiA9ICJmYWxzZSIgXQogICAgdGhlbgogICAgICAgIHByb2Nlc3NfZXhpdCBiYXogcXV4CiAgICBlbHNlCiAgICAgICAgZWNobyAiSW52YWxpZCBjaG9pY2UgWyR7Y2hvaWNlfV0uLi4iCiAgICBmaQpkb25l