Skip to content

Commit

Permalink
Add shellcheck pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Mar 11, 2024
1 parent 11d8762 commit 39adf36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ repos:
files: "^(README.md|pages/)"
- id: markdownlint-fix
files: "^(README.md|pages/)"
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
3 changes: 2 additions & 1 deletion pdf-docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh
# Note that .sh scripts work only on Mac. If you're on Windows, install Git Bash and use that as your client.

echo 'Kill all Jekyll instances'
kill -9 $(ps aux | grep '[j]ekyll' | awk '{print $2}')
killall -9 jekyll
clear

echo "Building PDF-friendly HTML site for Mydoc ...";
Expand Down

0 comments on commit 39adf36

Please sign in to comment.