1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

Format shell scripts

This commit is contained in:
Rohan Kumar 2023-11-23 19:06:46 -08:00
parent d88d98f829
commit 226ee52f85
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
4 changed files with 14 additions and 14 deletions

View file

@ -1,4 +1,6 @@
#!/bin/sh
set -e -u
# Runs axe on every page of my sitemap
# first arg is output directory, after that comes urls from a sitemap. We replace the urls with equivalent local file paths.
PATH="$(dirname "$0"):$PATH"

View file

@ -39,7 +39,6 @@ done
url="$1"
find_rel_mention_count() {
curl -s "$url" | grep -cF 'rel="mentioned"'
}

View file

@ -8,7 +8,6 @@
set -e -u
# the name of this program
progname="$(basename "$0")"
dirname="$(dirname "$0")"

View file

@ -23,7 +23,7 @@ cleanup() {
}
trap cleanup EXIT
run_tidy () {
run_tidy() {
tidy -asxhtml -config linter-configs/tidy.conf 2>/dev/null || true
}