From 45b144d2133f0dfce59b1d090d3307a0f5887efb Mon Sep 17 00:00:00 2001 From: Jaromil Date: Wed, 25 Nov 2020 14:47:54 +0100 Subject: [PATCH] print messages by default on stderr --- tomb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tomb b/tomb index 2ca8f13..28cc438 100755 --- a/tomb +++ b/tomb @@ -768,7 +768,7 @@ function _msg() { local progname="${TOMBEXEC##*/}" local pchars="" local pcolor="normal" - local fd=1 + local fd=2 local -i returncode case "$1" in @@ -780,7 +780,6 @@ function _msg() { ;; verbose) pchars="[D]"; pcolor="blue" - fd=2 ;; success) pchars="(*)"; pcolor="green" @@ -790,16 +789,15 @@ function _msg() { ;; failure) pchars="[E]"; pcolor="red" - fd=2 returncode=1 ;; print) progname="" + fd=1 ;; *) pchars="[F]"; pcolor="red" msg="Developer oops! Usage: _msg MESSAGE_TYPE \"MESSAGE_CONTENT\"" - fd=2 returncode=127 ;; esac @@ -3310,7 +3308,7 @@ main() { __default) _print "Tomb ::1 version:: - a strong and gentle undertaker for your secrets" $VERSION echo - _print " Copyright (C) 2007-2017 Dyne.org Foundation, License GNU GPL v3+" + _print " Copyright (C) 2007-2020 Dyne.org Foundation, License GNU GPL v3+" _print " This is free software: you are free to change and redistribute it" _print " For the latest sourcecode go to " echo