foundry-template/githooks/pre-commit-adorno

21 lines
256 B
Bash

#!/bin/bash
foundryup
if [ $? -ne 0 ]; then
echo "foundryup failed."
exit 1
fi
pnpm run adorno
if [ $? -ne 0 ]; then
echo "pnpm run adorno failed."
exit 1
fi
git add -p
echo "Successfully ran pnpm run adorno and added modified files."
exit 0