This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
GalacticFactory-Legacy/scripts/hooks/pre-commit
SeaswimmerTheFsh d6492cd3cf
All checks were successful
Autotagger / Autotagger (push) Successful in 5s
Build / Export Files (push) Successful in 6s
Build / Documentation (push) Successful in 17s
adding a debug echo to the pre-commit hook
2024-03-24 04:27:01 -04:00

11 lines
251 B
Bash
Executable file

#!/bin/sh
echo "pre-commit: Refreshing packwiz"
cd src
packwiz refresh
echo "pre-commit: Adding changes to git"
git add .
echo "pre-commit: Amending commit with refreshed files"
git commit --amend --no-edit --no-verify
echo "pre-commit: Done"
exit 0