Skip to content

Commit

Permalink
Use variable for programs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nj5m1n committed Sep 28, 2023
1 parent 20cf926 commit 1fd2631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdg-ninja.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 'if type == "object" then .files[] as $file | .name, $file.path, $file.movable, $file.help else . end' "$XN_PROGRAMS_DIR"/* | sed -e 's/^"//' -e 's/"$//')
EOF
# sed is to trim quotes
}
Expand Down

0 comments on commit 1fd2631

Please # to comment.