Project

General

Profile

« Previous | Next » 

Revision 9232

lib/sh/util.sh: only try to echo vars that are set, to avoid `declare -p` "not found" errors

View differences:

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