Proper exit codes are good practice. Also, if a command fails somewhere in the middle of the script, it will not proceed to the end of the script, outputting a message like "has been restored to the installed configuration."
The scripts need to be bash in order to use, for example, the following line: `if [[ ${1} == "" ]]; then` Simple one-line changes in all three files.