X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=dirtohtml.sh;h=fe6532fec6f5a0e138b3405b041ca4c4ff5c4fbd;hp=0c7315a18dd8ee866515de78f82d27b988c70ead;hb=1f75698a2a8695a3b9399e67d0e2b32a39d2733d;hpb=cc99dcb03c99868af8e28dad388fe6e5b733b0a1 diff --git a/dirtohtml.sh b/dirtohtml.sh index 0c7315a..fe6532f 100755 --- a/dirtohtml.sh +++ b/dirtohtml.sh @@ -48,16 +48,17 @@ echo echo "
" for d in $(find . -maxdepth 1 -type d -name "[^.]?*"); do + echo "${d}" - most_recent=$(find ${d} -type f -exec stat --printf="%Y %n\n" '{}' \; | sort | tail -1 | awk '{print $4}') + # most_recent=$(find ${d} -type f -exec stat --printf="%Y %n\n" '{}' \; | sort | tail -1 | awk '{print $4}') - if [[ ${most_recent} ]]; then - date=$(date -r ${most_recent}) - else - date=$(date -r ${d}) - fi + # if [[ ${most_recent} ]]; then + # date=$(date -r ${most_recent}) + # else + # date=$(date -r ${d}) + # fi - echo "${date} ${d}" + # echo "${date} ${d}" done echo ""