fix pkgver calculation

This commit is contained in:
core 2023-06-27 09:11:26 -04:00
parent 1d627aee7f
commit 188e57bc74
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 4 additions and 4 deletions

View File

@ -16,17 +16,17 @@ tasks:
cd /home/build/trifid cd /home/build/trifid
describe=$(git describe) describe=$(git describe)
if [[ $describe == tfclient* ]]; then
project=tfclient
fi
if [[ $describe == tfcli* ]]; then if [[ $describe == tfcli* ]]; then
project=tfcli project=tfcli
fi fi
if [[ $describe == tfclient* ]]; then
project=tfclient
fi
if [[ $describe == trifid-api* ]]; then if [[ $describe == trifid-api* ]]; then
project=trifid-api project=trifid-api
fi fi
pkgver=$(git describe | sed -e 's/$project-v//g' | sed -e 's/-/_/g') pkgver=$(git describe | sed -e "s/$project-v//g" | sed -e 's/-/_/g')
echo "project=$project" >> ~/.buildenv echo "project=$project" >> ~/.buildenv
echo "pkgver=$pkgver" >> ~/.buildenv echo "pkgver=$pkgver" >> ~/.buildenv