Commit Diff
Commit:
986e904716021556e40981c480bc099519ae3bf2
Date:
Wed Aug 24 10:45:15 2022
UTC
Message:
use file -b instead of regex on the output
--- filter-export
+++ filter-export
@@ -5,6 +5,5 @@ ftype="$(file "$OUTDIR/$path")"
# save the input
cat > "$OUTDIR/$path"
-ftype="$(file "$OUTDIR/$path")"
-echo "<li><a href='/$path'>${ftype#*:}</a></li>" >> parts.html
+echo "<li><a href='/$path'>$(file -b "$OUTDIR/$path")</a></li>" >> parts.html
exit 0
Omar Polo