diff --git a/main.sh b/main.sh index 6aa8bcb..5e675d3 100755 --- a/main.sh +++ b/main.sh @@ -374,6 +374,7 @@ info "__file: ${__file}" info "__dir: ${__dir}" info "__base: ${__base}" info "OSTYPE: ${OSTYPE}" +info "Script called directly? $([[ "${__i_am_main_script}" = "1" ]] && echo "yes" || echo "no")" info "arg_f: ${arg_f}" info "arg_d: ${arg_d}" diff --git a/test/fixture/main-debug.stdio b/test/fixture/main-debug.stdio index ec65b64..7f40ee2 100644 --- a/test/fixture/main-debug.stdio +++ b/test/fixture/main-debug.stdio @@ -5,6 +5,7 @@ ACCPTST:STDIO_REPLACE_DATETIMES {datetime} UTC [ info] __dir: {root} {datetime} UTC [ info] __base: main {datetime} UTC [ info] OSTYPE: {OSTYPE} +{datetime} UTC [ info] Script called directly? yes {datetime} UTC [ info] arg_f: {tmpdir}/x {datetime} UTC [ info] arg_d: 0 {datetime} UTC [ info] arg_v: 0 diff --git a/test/fixture/main-nocolor.stdio b/test/fixture/main-nocolor.stdio index 2cb3a6b..bbc459c 100644 --- a/test/fixture/main-nocolor.stdio +++ b/test/fixture/main-nocolor.stdio @@ -5,6 +5,7 @@ ACCPTST:STDIO_REPLACE_DATETIMES {datetime} UTC [ info] __dir: {root} {datetime} UTC [ info] __base: main {datetime} UTC [ info] OSTYPE: {OSTYPE} +{datetime} UTC [ info] Script called directly? yes {datetime} UTC [ info] arg_f: {tmpdir}/x {datetime} UTC [ info] arg_d: 0 {datetime} UTC [ info] arg_v: 0