Commit Diff
Commit:
986e904716021556e40981c480bc099519ae3bf2
From:
Omar Polo <op@omarpolo.com>
Date:
Wed Aug 24 10:45:15 2022 UTC
Message:
use file -b instead of regex on the output
commit - 84989e10fb9698b366551500ae77fdef784f4d92
commit + 986e904716021556e40981c480bc099519ae3bf2
blob - 7bb747882cbad7cfd7a8435398ad492d42d41cd5
blob + 61819234a647342395b4717d50c8096ef6d242c7
--- 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