use xargs to trail whitespace
All checks were successful
Actions / build_export_files (push) Successful in 9s
Actions / autotagger (push) Successful in 13s
Actions / build_docs (push) Successful in 24s

This commit is contained in:
cswimr 2024-09-22 11:23:05 -04:00
parent 02edf7a3e0
commit dea8a7b08a
Signed by: cswimr
GPG key ID: A9C162E867C851FA

View file

@ -3,8 +3,8 @@ project_root=$(git rev-parse --show-toplevel)
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 '"')
packwiz_version=$(grep '^version =' pack.toml | awk -F'=' '{print $2}' | tr -d '"' | xargs)
bcc_version=$(grep 'modpackVersion =' config/bcc-common.toml | awk -F'=' '{print $2}' | tr -d '"' | xargs)
echo "post-commit: Packwiz version: $packwiz_version"
echo "post-commit: BCC version: $bcc_version"