]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/blobdiff - xdg-ninja.sh
Add lyrics entry to ncmpcpp (#402)
[xdg-ninja.git] / xdg-ninja.sh
index 84260f5498973d2a1b502f3147cb8c04eb396ef4..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 'inputs as $input | $input.files[] as $file | $input.name, $file.path, $file.movable, $file.help' "$XN_PROGRAMS_DIR"/* | 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
 }