prefix output
authorgregor herrmann <gregoa@debian.org>
Tue, 9 Aug 2016 14:34:14 +0000 (16:34 +0200)
committergregor herrmann <gregoa@debian.org>
Tue, 9 Aug 2016 14:34:14 +0000 (16:34 +0200)
bin/client/tdyndns_client

index 6593a95..6e8d2e3 100755 (executable)
@@ -7,7 +7,7 @@ set -u
 # debug?
 
 if [ $# -gt 0 ] ; then
-       DOIT="echo "
+       DOIT="echo I: "
        set -x
 else
        DOIT=""
@@ -16,12 +16,12 @@ fi
 # functions
 
 die() {
-       echo "$1" >&2
+       echo "E: $1" >&2
        exit 1
 }
 
 warn() {
-       echo "$1" >&2
+       echo "W: $1" >&2
 }
 
 # variables