This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 04a6e1c tools/configure.sh: Copy output to stderr on errors.
04a6e1c is described below
commit 04a6e1cc2980f3f1351937a6aff4a9b71e1b1d5e
Author: Abdelatif Guettouche <[email protected]>
AuthorDate: Wed Oct 6 11:15:13 2021 +0200
tools/configure.sh: Copy output to stderr on errors.
This helps when redirecting stdout to /dev/null (as in the CI for example)
and still be able to catch error output.
Signed-off-by: Abdelatif Guettouche <[email protected]>
---
tools/configure.sh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tools/configure.sh b/tools/configure.sh
index 5b570c7..4b1e37d 100755
--- a/tools/configure.sh
+++ b/tools/configure.sh
@@ -112,9 +112,9 @@ done
# Sanity checking
if [ -z "${boardconfig}" ]; then
- echo ""
- echo "Missing <board/config> argument"
- echo "$USAGE"
+ echo "" 1>&2
+ echo "Missing <board/config> argument" 1>&2
+ echo "$USAGE" 1>&2
exit 2
fi
@@ -134,10 +134,10 @@ if [ ! -d ${configpath} ]; then
if [ ! -d ${configpath} ]; then
configpath=${boardconfig}
if [ ! -d ${configpath} ]; then
- echo "Directory for ${boardconfig} does not exist."
- echo ""
- echo "Run tools/configure.sh -L to list available configurations."
- echo "$USAGE"
+ echo "Directory for ${boardconfig} does not exist." 1>&2
+ echo "" 1>&2
+ echo "Run tools/configure.sh -L to list available configurations." 1>&2
+ echo "$USAGE" 1>&2
exit 3
fi
fi