]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commit
xdg-ninja: change jq json source
authorAsperatus <git@ballasi.com>
Sun, 15 May 2022 05:39:48 +0000 (01:39 -0400)
committerAsperatus <git@ballasi.com>
Sun, 15 May 2022 05:39:48 +0000 (01:39 -0400)
commit500814cc3446805fcb1a6187c2d55568748a20f9
treee16b7fe988c23f0f81b5cb8c2d816d00a8547443
parent75dd7b21ad30219c647e730144e52738b8c6f386
xdg-ninja: change jq json source

There was an issue caused by inconsistencies on the implementation of
echo through different shells. Some, like bash, did not interpret \n
while others, like dash, did. This caused issue when sending the
information to jq to parse as it as JSON specifications forbids
multi-line strings.

A quick fix was applied by giving jq the path to the file to analyze
rather than grabbing it from stdin.
xdg-ninja.sh