#!/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