Created by
Tom Roche
|
### ----------------------------------------------------------------------
### constants
### ----------------------------------------------------------------------
## just for logging
THIS="$0"
# `source` -> !useful ${THIS}
THIS_FN='install_Firefox_for_F5NAP.sh'
#echo -e "${THIS_FN}: THIS='${THIS}'"
# TODO? prohibit `source`ing, since that probably won't work
if [[ -z "${THIS}" ||"${THIS}" == '-bash' ]] ; then # we're `source`ing
# also for manual testing
THIS_DIR='.' # gotta assume location of other dependencies
else
THIS_DIR="$(readlink -f $(dirname ${THIS}))" # FQ/absolute path
THIS_FN="$(basename ${THIS})"
fi
MESSAGE_PREFIX="${THIS_FN}:"
WARNING_PREFIX="${MESSAGE_PREFIX} WARNING:"
ERROR_PREFIX="${MESSAGE_PREFIX} ERROR:"
### ----------------------------------------------------------------------
### code
### ----------------------------------------------------------------------
|