tazpkg diff modules/getenv @ rev 858
tazpkg-box: change window icon
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 13 00:34:05 2015 +0200 (2015-11-13) |
parents | 8a73a58ed3cb |
children | 67996045442a |
line diff
1.1 --- a/modules/getenv Fri Oct 09 13:14:01 2015 +0300 1.2 +++ b/modules/getenv Fri Nov 13 00:34:05 2015 +0200 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