summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Prindeville2023-09-16 21:13:06 +0000
committerRobert Marko2026-02-12 15:57:28 +0000
commitd324c0503040914dd125298093c83fd07bf9f012 (patch)
tree07740141a98dc643a23a58f3bed2cdce64e14b33
parent7928f1711703767b0ac5ce916c7231d0e1af1ca2 (diff)
downloadlibubox-d324c0503040914dd125298093c83fd07bf9f012.tar.gz
libubox: send warnings to stderr
Errors are sent to stderr in all but once place. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Link: https://github.com/openwrt/libubox/pull/12 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--sh/jshn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 8402b54..4d3f8c0 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -323,7 +323,7 @@ json_select() {
;;
*)
[ -n "$_json_no_warning" ] || \
- echo "WARNING: Variable '$target' does not exist or is not an array/object"
+ echo "WARNING: Variable '$target' does not exist or is not an array/object" >&2
return 1
;;
esac