mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2024-12-24 00:32:21 +00:00
Add || true to fix __invocation with no arguments (#102)
This commit is contained in:
parent
327cba75c9
commit
2048e4303e
2
main.sh
2
main.sh
@ -47,7 +47,7 @@ fi
|
||||
__dir="$(cd "$(dirname "${BASH_SOURCE[${__b3bp_tmp_source_idx:-0}]}")" && pwd)"
|
||||
__file="${__dir}/$(basename "${BASH_SOURCE[${__b3bp_tmp_source_idx:-0}]}")"
|
||||
__base="$(basename "${__file}" .sh)"
|
||||
__invocation="$(printf %q "${__file}")$((($#)) && printf ' %q' "$@")"
|
||||
__invocation="$(printf %q "${__file}")$((($#)) && printf ' %q' "$@" || true)"
|
||||
|
||||
# Define the environment variables (and their defaults) that this script depends on
|
||||
LOG_LEVEL="${LOG_LEVEL:-6}" # 7 = debug -> 0 = emergency
|
||||
|
Loading…
Reference in New Issue
Block a user