fix entry2csv.sh to not damage award strings

The `bin/entry2csv.sh` too was modified to leave \uxxxx
in awards alone and to NOT convert it.

Changed `bin/entry2csv.sh` VERSION from "1.5.1 2024-10-10"
to "1.6 2024-10-14".

Performed `make entry2csv` and `make csv2entry` to test the above
under macOS.
This commit is contained in:
Landon Curt Noll committed 2024-10-14 13:24:02 -07:00
1 parent ac6c332ecd
commit 567e6541f8
1 file changed
+4 -4
+4 -4
View File
@@ -118,7 +118,7 @@ shopt -s lastpipe # explicitly run the last command of the pipe line in the curr
# set variables referenced in the usage message
#
export VERSION="1.5.1 2024-10-10"
export VERSION="1.6 2024-10-14"
NAME=$(basename "$0")
export NAME
export V_FLAG=0
@@ -218,12 +218,12 @@ function output_award
#
PATTERN='$..award'
if [[ $V_FLAG -ge 5 ]]; then
echo "$0: debug[5]: about to run: $JVAL_WRAPPER -b -q -- $ENTRY_JSON_PATH '$PATTERN' | $JSTRDECODE -N -" 1>&2
echo "$0: debug[5]: about to run: $JVAL_WRAPPER -b -q -- $ENTRY_JSON_PATH '$PATTERN'" 1>&2
fi
"$JVAL_WRAPPER" -b -q "$ENTRY_JSON_PATH" "$PATTERN" | "$JSTRDECODE" -N -
"$JVAL_WRAPPER" -b -q "$ENTRY_JSON_PATH" "$PATTERN"
status_codes=("${PIPESTATUS[@]}")
if [[ ${status_codes[*]} =~ [1-9] ]]; then
echo "$0: ERROR: in output_award: $JVAL_WRAPPER -b -q -- $ENTRY_JSON_PATH '$PATTERN' | $JSTRDECODE -N - failed," \
echo "$0: ERROR: in output_award: $JVAL_WRAPPER -b -q -- $ENTRY_JSON_PATH '$PATTERN' failed," \
"error codes: ${status_codes[*]}" 1>&2
return 5
fi