From 02edf7a3e0de269ea51e90d8706f75122a17bfb9 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 22 Sep 2024 11:20:04 -0400 Subject: [PATCH] echo version numbers in post-commit hook --- scripts/hooks/post-commit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/hooks/post-commit b/scripts/hooks/post-commit index 59e70af..7b0c6e8 100755 --- a/scripts/hooks/post-commit +++ b/scripts/hooks/post-commit @@ -5,6 +5,8 @@ cd "$project_root"/src || exit echo "post-commit: Checking version numbers" packwiz_version=$(grep '^version =' pack.toml | awk -F'=' '{print $2}' | tr -d '"') bcc_version=$(grep 'modpackVersion =' config/bcc-common.toml | awk -F'=' '{print $2}' | tr -d '"') +echo "post-commit: Packwiz version: $packwiz_version" +echo "post-commit: BCC version: $bcc_version" if [ "$packwiz_version" != "$bcc_version" ]; then echo "post-commit: Version numbers do not match, updating config/bcc-common.toml"