Skip to content

Commit

Permalink
Fix dirname invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nj5m1n committed Jun 28, 2022
1 parent f72a522 commit 696061d
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 @@ -206,7 +206,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' "$(realpath "$0" | dirname -)"/programs/* | sed -e 's/^"//' -e 's/"$//')
$(jq 'inputs as $input | $input.files[] as $file | $input.name, $file.path, $file.movable, $file.help' "$(realpath "$0" | xargs dirname)"/programs/* | sed -e 's/^"//' -e 's/"$//')
EOF
# sed is to trim quotes
}
Expand Down

0 comments on commit 696061d

Please sign in to comment.