]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Merge pull request #318 from b3nj5m1n/fix-missing-program
authorb3nj5m1n <47924309+b3nj5m1n@users.noreply.github.com>
Sun, 7 Jan 2024 07:37:45 +0000 (08:37 +0100)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 07:37:45 +0000 (08:37 +0100)
Fix skipping one program during check

xdg-ninja.sh

index 84260f5498973d2a1b502f3147cb8c04eb396ef4..fc1f1154e848a91d5c85b43bc258c33a786b5994 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 '.files[] as $file | .name, $file.path, $file.movable, $file.help' "$XN_PROGRAMS_DIR"/* | sed -e 's/^"//' -e 's/"$//')
 EOF
 # sed is to trim quotes
 }