~tristan957/tristan.partin.io

969d986fffe221da7a79dcff2b1a1de4af9134c5 — Tristan Partin 4 months ago e7099fe
Add shellcheck linting
M .build.yml => .build.yml +4 -0
@@ 3,9 3,13 @@ oauth: pages.sr.ht/PAGES:RW
packages:
  - go
  - hugo
  - shellcheck
sources:
  - https://git.sr.ht/~tristan957/tristan.partin.io
tasks:
  - lint: |
      cd tristan.partin.io
      shellcheck $(find scripts/ -type f)
  - openring: |
      cd tristan.partin.io
      ./scripts/openring/build.sh

M scripts/bootstrap.sh => scripts/bootstrap.sh +2 -2
@@ 2,5 2,5 @@

# Set git hooks

ln -s $(pwd)/scripts/hooks/pre-push $(pwd)/.git/hooks/pre-push
ln -s $(pwd)/scripts/hooks/pre-commit $(pwd)/.git/hooks/pre-commit
ln -s "$(pwd)/scripts/hooks/pre-push" "$(pwd)/.git/hooks/pre-push"
ln -s "$(pwd)/scripts/hooks/pre-commit" "$(pwd)/.git/hooks/pre-commit"

M scripts/hooks/pre-push => scripts/hooks/pre-push +1 -1
@@ 1,6 1,6 @@
#!/bin/sh

# Don't run the script twice...
if [ "$2" == "git@git.sr.ht:~tristan957/tristan.partin.io" ]; then
if [ "$2" = "git@git.sr.ht:~tristan957/tristan.partin.io" ]; then
	./scripts/openring/generate.sh
fi

M scripts/hugo/build.sh => scripts/hugo/build.sh +2 -2
@@ 1,4 1,4 @@
#!/usr/bin/env sh
#!/bin/sh

cd hugo
cd hugo || exit
CGO_ENABLED=1 go build --tags extended -o ../bin/hugo

M scripts/openring/build.sh => scripts/openring/build.sh +2 -2
@@ 1,4 1,4 @@
#!/usr/bin/env sh
#!/bin/sh

cd openring
cd openring || exit
go build -o ../bin/openring

M scripts/openring/generate.sh => scripts/openring/generate.sh +1 -1
@@ 1,4 1,4 @@
#!/usr/bin/env sh
#!/bin/sh

./bin/openring \
	-S webring.txt \