Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed May 13, 2021
2 parents 5b541f1 + d921d63 commit b198481
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions webpage/scripts/merge_table_linux.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/bin/bash
xidel index.html -e 'xquery version "3.0-xidel";
xidel index.html -e 'xquery version "3.1-xidel";
declare variable $newtablerows := doc("file:///tmp/table.html")//tr;
transform(function($e){
if ($e instance of element() and name($e) eq "tbody" and $e/@id eq "linuxdownloads") then
x:replace-nodes(//tbody[@id eq "linuxdownloads"],
<tbody id="linuxdownloads">
{$newtablerows}
</tbody>
else $e
})' --output-format html > /tmp/new.html
cp /tmp/new.html index.html
)' --output-format html > /tmp/new.html && cp /tmp/new.html index.html



0 comments on commit b198481

Please sign in to comment.