Introduction
Introduction Statistics Contact Development Disclaimer Help
Check the file mime type and display text/* - annna - Annna the nice friendly b…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 2d4b83b4b7c822992aa5dd2d18c7f672d963c68e
parent 58865cceb90c5d440e54de4454b99aa740ae1419
Author: Annna Robert-Houdin <[email protected]>
Date: Fri, 5 Jun 2020 22:11:15 +0200
Check the file mime type and display text/*
Diffstat:
M annna-start-services | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/annna-start-services b/annna-start-services
@@ -118,8 +118,13 @@ annna_common() {
nuri="${nuri}; gopherdit: ${guri} "
fi
;;
- *.html|*.HTML|*.txt|*.TXT|*/)
- nocuri=0
+ *)
+ mimetype="$(file -b --mime-type "${tmpf}")"
+ case "${mimetype}" in
+ text/*)
+ nocuri=0
+ ;;
+ esac
;;
esac
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.