return { s({ trig = "no-source", dscr = "Exit with an error if script is being sourced", }, { t({ 'if [[ "${0}" != "${BASH_SOURCE[0]}" ]]; then', '\techo "Error: script ${BASH_SOURCE[0]} is not supported to be sourced!"', "\treturn 1", "fi", }), }), }