From 0a58e5536e158c42e19abfd5414ecd073f34b9cc Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul Date: Sun, 19 May 2024 15:23:56 -0700 Subject: [PATCH] Update site-index Fix the xargs --- bin/site-index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/site-index b/bin/site-index index e7dd213a..a7d52e1a 100755 --- a/bin/site-index +++ b/bin/site-index @@ -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