tazpkg diff modules/getenv @ rev 849

Fix working of modules/reconfigure (thank Robertux for bugreport); small changes.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 20 10:24:52 2015 +0300 (2015-10-20)
parents 8a73a58ed3cb
children 67996045442a
line diff
     1.1 --- a/modules/getenv	Fri Oct 09 13:14:01 2015 +0300
     1.2 +++ b/modules/getenv	Tue Oct 20 10:24:52 2015 +0300
     1.3 @@ -24,7 +24,8 @@
     1.4  debug() {
     1.5  	if [ -n "$debug" ]; then
     1.6  		colorize 036 "$@" >&2
     1.7 -		echo -e "$(date +%f) $@" >> "${LOG/.log/.debug}"
     1.8 +		# $LOG is unavailable at the early stage on 'getenv'
     1.9 +		[ -n "$LOG" ] && echo -e "$(date +%f) $@" >> "${LOG/.log/.debug}"
    1.10  	fi
    1.11  }
    1.12