Revision 9232
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
298 | 298 |
log++; log++ |
299 | 299 |
if can_log; then |
300 | 300 |
local var |
301 |
for var in "${@%%=*}"; do log "$(declare -p "$var")"; done |
|
301 |
for var in "${@%%=*}"; do |
|
302 |
if isset "$var"; then log "$(declare -p "$var")"; fi |
|
303 |
done |
|
302 | 304 |
fi |
303 | 305 |
} |
304 | 306 |
|
Also available in: Unified diff
lib/sh/util.sh: only try to echo vars that are set, to avoid `declare -p` "not found" errors