]> git.nbdom.net Git - nb.git/commitdiff
/opt/nb/lib/postgres/mime.sql
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 1 Nov 2019 15:41:05 +0000 (15:41 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 1 Nov 2019 15:41:05 +0000 (15:41 +0000)
lib/postgres/mime.sql

index f5f0571640b2dfa1f65f15e446874014863ffdd7..bd109392a274d7a5c9c87a0312065f8b5f3d5461 100644 (file)
@@ -707,7 +707,8 @@ SELECT '>developer.mozilla.org' as log;
 DELETE FROM tmp_mime;
 COPY tmp_mime FROM PROGRAM 'true && curl -s \
 https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types \
-| xmllint --html --xpath "/html/body//table[@class=\"standard-table\"]" - 2>/dev/null |html2csv - \
+| xmllint --html --xpath "/html/body//table[@class=\"standard-table\"]" - 2>/dev/null \
+| $NB_ROOT/bin/html2csv - \
 | tail -n+2 | \
 ' WITH (format 'text', NULL '');
 INSERT INTO mime SELECT * FROM tmp_mime ON CONFLICT DO NOTHING;