~ubuntu-branches/ubuntu/utopic/devscripts/utopic-security

« back to all changes in this revision

Viewing changes to scripts/annotate-output.sh

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2013-02-18 22:27:33 UTC
  • mfrom: (10.9.22 experimental)
  • Revision ID: package-import@ubuntu.com-20130218222733-7krtkqzko32xte0z
Tags: 2.13.0ubuntu1
* Merge from Debian experimental. Remaining changes:
  - Convert python scripts to python3. (Closes: #680313)
    Debian bug #695259 needs to be fixed to get the change into Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
addtime ()
26
26
{
27
 
        while read line; do
 
27
        while IFS= read -r line; do
28
28
                echo "`date ${FMT}` $1: $line"
29
29
        done
 
30
        if [ ! -z "$line" ]; then
 
31
                echo -n "`date ${FMT}` $1: $line"
 
32
        fi
30
33
}
31
34
 
32
35
usage ()