]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Fix skipping one program during check
authorb3nj5m1n <b3nj4m1n@gmx.net>
Thu, 28 Sep 2023 12:06:15 +0000 (14:06 +0200)
committerb3nj5m1n <b3nj4m1n@gmx.net>
Thu, 28 Sep 2023 12:06:15 +0000 (14:06 +0200)
xdg-ninja.sh

index 84260f5498973d2a1b502f3147cb8c04eb396ef4..712e4e17d3d02154646bf651a8bece3b76b4827c 100755 (executable)
@@ -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 'if type == "object" then .files[] as $file | .name, $file.path, $file.movable, $file.help else . end' programs/* | sed -e 's/^"//' -e 's/"$//')
 EOF
 # sed is to trim quotes
 }