Revision 13207
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
943 | 943 |
if test "$explicit_errors_only"; then disable_logging; fi |
944 | 944 |
|
945 | 945 |
|
946 |
echo_vars is_outermost |
|
946 |
log++ echo_vars is_outermost
|
|
947 | 947 |
|
948 | 948 |
|
949 | 949 |
#### paths |
950 | 950 |
|
951 |
log++ |
|
952 |
|
|
951 | 953 |
top_script="${BASH_SOURCE[${#BASH_SOURCE[@]}-1]}"; echo_vars top_script |
952 | 954 |
# outermost script; unlike $0, also defined for .-scripts |
953 | 955 |
|
... | ... | |
959 | 961 |
# realpath this before doing any cd so this points to the right place |
960 | 962 |
top_dir_abs="$(dirname "$top_script_abs")"; echo_vars top_dir_abs |
961 | 963 |
|
964 |
log-- |
|
965 |
|
|
962 | 966 |
set_paths() |
963 | 967 |
{ |
964 | 968 |
log_local; log++ |
Also available in: Unified diff
lib/sh/util.sh: $top_* vars, $is_outermost: log at higher log_level because it's startup code