Skip to content

Commit

Permalink
Update site-index
Browse files Browse the repository at this point in the history
Fix the xargs
  • Loading branch information
kigster authored May 19, 2024
1 parent d092843 commit 0a58e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/site-index
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ index_path="${RAILS_ROOT}/${dir}"
index_file="${index_path}/${file}"

temp="$(mktemp)"
ls -1 "${index_path}"/[a-z]* | xargs basename | awk '{printf "%s \"%s\";\n", "@import", $1}' > "${temp}"
ls -1 "${index_path}"/[a-z]* | xargs -n 1 basename | awk '{printf "%s \"%s\";\n", "@import", $1}' > "${temp}"

export _diff
if [[ -f "${index_file}" ]]; then
Expand Down

0 comments on commit 0a58e55

Please sign in to comment.