Inital branch commit

This commit is contained in:
2026-01-08 16:09:43 +00:00
parent 47e0690f4a
commit 82c7fbcb69
30 changed files with 32 additions and 941 deletions

View File

@@ -0,0 +1,16 @@
#! /bin/sh
#
# Run pre commit checks on bin/yait. Requires `shellcheck` as well as a POSIX
# shell (duh)
script_path="./bin/yait"
if git diff --cached --name-only | grep -q "$script_path"; then
if ! shellcheck "$script_path"; then
echo "[$0]: Syntax errors found in $script_path. Commit aborted."
exit 1
fi
fi
echo "[$0] All Tests Pass"
exit 0