Skip to content

Instantly share code, notes, and snippets.

@privatezero
Created December 12, 2017 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save privatezero/b5556d6e9a2aafd5d5a245f4f2176e37 to your computer and use it in GitHub Desktop.
Save privatezero/b5556d6e9a2aafd5d5a245f4f2176e37 to your computer and use it in GitHub Desktop.
if [[ "${runtype}" = "GUI" ]] ; then
echo 'GUI'
fi
if [[ "${runtype}" = "reset" ]] ; then
_report -q -n "Reseting the configuration will clear ${config_file}. Please enter [Y] to confirm: "
read reset_response
if [[ "${reset_response}" = "[Yy]" ]] ; then
echo 'edit'
else
echo 'abort'
fi
elif [[ "${runtype}" = "edit" ]] ; then
echo 'edit'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment