]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - xdg-ninja.sh
Add lyrics entry to ncmpcpp (#402)
[xdg-ninja.git] / xdg-ninja.sh
index 712e4e17d3d02154646bf651a8bece3b76b4827c..7a0b29ee8c10c648a0147d7ad850eeb06f5a0321 100755 (executable)
@@ -66,7 +66,7 @@ help() {
     ${FX_ITALIC}--skip-unsupported${FX_RESET}  ${FX_BOLD}Don't display anything for files that do not have fixes available${FX_RESET}
 
     """
-    printf "%b" "$HELPSTRING"
+    printf "%b\n" "$HELPSTRING"
 }
 
 SKIP_OK=true
@@ -230,7 +230,7 @@ do_check_programs() {
 " read -r name; read -r filename; read -r movable; read -r help; do
         check_file "$name" "$filename" "$movable" "$help"
     done <<EOF
-$(jq 'if type == "object" then .files[] as $file | .name, $file.path, $file.movable, $file.help else . end' programs/* | sed -e 's/^"//' -e 's/"$//')
+$(jq '.files[] as $file | .name, $file.path, $file.movable, $file.help' "$XN_PROGRAMS_DIR"/* | sed -e 's/^"//' -e 's/"$//')
 EOF
 # sed is to trim quotes
 }