Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Wed Sep 20 13:29:02 2023 -0300
Parent: 1ef3e3d
Added subshell command
diff --git a/update-repo-tree b/update-repo-tree index dfa9fc0..7dcc866 100755 --- a/update-repo-tree +++ b/update-repo-tree @@ -60,9 +60,7 @@ cat << EOF > "$OUT/tree.html" <tr><th>Size</th><th>Name</th><th>Raw</th></tr> EOF -# TODO: create each html page for a file -files="$(cd "$OUT/tree" && find * -type f -printf '%s %p\n')" -echo $files | while read -r s f +(cd "$OUT/tree" && find * -type f -printf '%s %p\n') | while read -r s f do echo "updating file $1"