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

index bd109392a274d7a5c9c87a0312065f8b5f3d5461..6921a5b2a4b3b07dcd444f48f119da26f91b6260 100644 (file)
@@ -708,8 +708,8 @@ 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 \
-| $NB_ROOT/bin/html2csv - \
-| tail -n+2 \
+| html2csv - \
+| tail -n+2 \
 ' WITH (format 'text', NULL '');
 INSERT INTO mime SELECT * FROM tmp_mime ON CONFLICT DO NOTHING;