############################################################################################### #!/bin/bash # Name: script_worker_skel.sh # Description: Template for a worker script. Launched via parent script: script_skel.sh ############################################################################################### ##### Customize These Variables ##### #variable1="value" ##### End of Customize Variables ##### #### Functions Here: Main Starts After #### # function name{ # #} #### End of Functions #### #================== # Main Starts Here #================== # Pre-checks #============================================================== # Confirm running the script #============================================================== echo -e "======================================================" echo -e "####=============== Name of Script ===============####" echo -e "======================================================" echo echo -e "Warning: This script will..." echo -e "\n=>Continue?[y/n]:\c" read run_script if [[ ${run_script} != "y" ]]; then echo -e "\n>>Will not run the Name of Script. Exiting..." exit 1 fi # Do some stuff echo -e "\n======================================================" echo -e "####========== Name of Script Complete ===========####" echo -e "======================================================"