cookutils diff cooker @ rev 48

cook: fic debug date - cooker: add date to cooknotes
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 07 04:42:06 2011 +0200 (2011-05-07)
parents 176385db9cdb
children 7281d806c7ea
line diff
     1.1 --- a/cooker	Sat May 07 04:20:42 2011 +0200
     1.2 +++ b/cooker	Sat May 07 04:42:06 2011 +0200
     1.3 @@ -249,7 +249,8 @@
     1.4  	note|-n)
     1.5  		# Blocked a pkg and want other to know why ? Post a note!
     1.6  		note="$2"
     1.7 -		[ "$note" ] && echo "$note" >> $cooknotes ;;
     1.8 +		date=$(date "+%Y-%m-%d %H:%M")
     1.9 +		[ "$note" ] && echo "$date : $note" >> $cooknotes ;;
    1.10  	notes|-ns)
    1.11  		# View cooknotes.
    1.12  		echo -e "\nCooknotes"