Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
galaxyproject
GitHub Repository: galaxyproject/training-material
Path: blob/main/bin/gtn-fix.sh
1677 views
1
#!/bin/bash
2
3
# GTN AutoFixer script. This fixes any automatically correctable errors we can
4
# detect.
5
6
# faqs/Must be called with 'snippet', not 'include'
7
sed -i "s/{% include faqs/{% snippet faqs/g" $(grep '{% include faqs' -R topics -l)
8
9
# gat-diffs/These can be auto-corrected it seems
10
find ./topics/admin/ -name '*.md' -type f -print0 | xargs -n 1 -0 python3 bin/lint-diffs.py
11
12