diff mbox series

[v2,1/3] jshn.sh: Send warnings to stderr

Message ID mailman.19994.1761765796.2093109.openwrt-devel@lists.openwrt.org
State New
Headers show
Series [v2,1/3] jshn.sh: Send warnings to stderr | expand

Commit Message

Philip Prindeville Oct. 29, 2025, 7:23 p.m. UTC
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
From: Philip Prindeville <philipp@redfish-solutions.com>

There's one place where errors aren't sent to stderr.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
---
 sh/jshn.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sh/jshn.sh b/sh/jshn.sh
index 1d3055711820e5a21ea59cae49e7bf3f56b626d8..3f2f679187db96d77ccf27b15f5fc47cb8ee9796 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -309,7 +309,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