diff --git a/shared.sh b/shared.sh index 2068cee..d924800 100644 --- a/shared.sh +++ b/shared.sh @@ -32,3 +32,10 @@ if [[ "$(uname)" == "Darwin" ]] ; then exit 9 fi fi + +##==---------------------------------------------------------------------------- +## Non GitHub compatibility - for testing both locally and in BATS + +if [[ -z "${GITHUB_OUTPUT:-}" || -n "${BATS_VERSION:-}" ]] ; then + export GITHUB_OUTPUT="/dev/stdout" +fi