mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-25 00:41:04 +00:00
d879ae1fe0
__i_am_main_script logic fixed for example.sh added double-sourced test
13 lines
301 B
Bash
13 lines
301 B
Bash
#!/usr/bin/env bash
|
|
set -o pipefail
|
|
set -o errexit
|
|
set -o nounset
|
|
# set -o xtrace
|
|
|
|
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
__root="$(cd "$(dirname "$(dirname "$(dirname "${__dir}")")")" && pwd)"
|
|
|
|
echo "ACCPTST:STDIO_REPLACE_DATETIMES"
|
|
|
|
env LOG_LEVEL=7 bash "${__root}/main.sh" -f /tmp/x
|