mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-01-25 21:19:18 +00:00
d879ae1fe0
__i_am_main_script logic fixed for example.sh added double-sourced test
16 lines
341 B
Bash
16 lines
341 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)"
|
|
|
|
export LOG_LEVEL=7
|
|
|
|
echo "ACCPTST:STDIO_REPLACE_DATETIMES"
|
|
|
|
# shellcheck source=example.sh
|
|
source "${__root}/example.sh" -f /tmp/x
|