]> arthur.barton.de Git - ax-unix.git/commitdiff
Redirect error messages to stderr
authorAlexander Barton <alex@barton.de>
Fri, 27 Oct 2017 10:36:09 +0000 (12:36 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 27 Oct 2017 10:36:09 +0000 (12:36 +0200)
bup/save-user/bup-save-user
lib/ax/README
mail/wrapper/mail-wrapper

index 9fd5bbf0e9e172132390d8c2d5c980bc7f83f3a3..aea3386268aa4249bc85c23b40bdbbc291580c01 100755 (executable)
@@ -13,14 +13,14 @@ NAME=$(basename "$0")
 
 Usage()
 {
-       echo "Usage: $NAME"; echo
+       echo "Usage: $NAME" 2>&1; echo
        exit 1
 }
 
 [ $# -eq 0 ] || Usage
 
 if [ ! -d "$HOME/.bup" ]; then
-       echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!"
+       echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!" >&2
        exit 1
 fi
 
index 581418ada2932018a6fa3c5decca4beff33a6338..1b85fe01bbd74627de7c7a401a5f1e86d192b2cb 100644 (file)
@@ -25,7 +25,7 @@ for dir in "$HOME/lib" "$HOME/.ax" /usr/local /opt/ax /usr; do
        [ -r "$ax_common" ] && . "$ax_common"
 done
 if [ -z "$ax_common_sourced" ]; then
-       echo "Error ($(basename "$0")): \"ax-common.sh\" not found, aborting!"
+       echo "Error ($(basename "$0")): \"ax-common.sh\" not found, aborting!" >&2
        echo "Please install 'ax-unix', \"Alex' UNIX Tools & Scripts\", and try again."
        exit 99
 fi
index 7c5a19b98c2b5a358e1c817763f5a0402ad6f4ac..e581c457625fc049c237458b4afd3832adb502cd 100755 (executable)
@@ -20,7 +20,7 @@ for dir in "$HOME/lib" "$HOME/.ax" /usr/local /opt/ax /usr; do
        [ -r "$ax_common" ] && . "$ax_common"
 done
 if [ -z "$ax_common_sourced" ]; then
-       echo "Error ($(basename "$0")): \"ax-common.sh\" not found, aborting!"
+       echo "Error ($NAME): \"ax-common.sh\" not found, aborting!" >&2
        echo "Please install 'ax-unix', \"Alex' UNIX Tools & Scripts\", and try again."
        exit 99
 fi