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