Skip to content

Commit

Permalink
Redirect all errors to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed May 8, 2020
1 parent 1c01a7a commit 7a24ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions email
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if [ -n "$QUEUE" ]; then
fi

if [ -z "$FROM" ]; then
echo "ERROR:FROM is not defined"
echo "ERROR:FROM is not defined" 1>&2
exit 1
fi

Expand Down Expand Up @@ -161,7 +161,7 @@ if [ $# -eq 6 ]; then
MAILFILE=$6
else
MAILFILE=$(mktemp </dev/null /tmp/fax.XXXXXX) ||
(echo "ERROR:Failed to create temporary file"; exit 1)
(echo "ERROR:Failed to create temporary file" 1>&2; exit 1)
cat >$MAILFILE
fi

Expand Down

0 comments on commit 7a24ff9

Please sign in to comment.