echo version numbers in post-commit hook
This commit is contained in:
parent
c997da87d7
commit
02edf7a3e0
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Reference in a new issue