Skip to content

Commit

Permalink
ensure git command only runs locally
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Apr 17, 2024
1 parent 50ca282 commit ef6a021
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/packages/packager/signed-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ set -x
set -euxo pipefail

FREEBSD_DISTROS="FreeBSD:12:amd64 FreeBSD:13:amd64"
VERSION_TAG=$(git describe --match 'v[0-9]*' --abbrev=0 | tr -d 'v')
export VERSION=${VERSION:-${VERSION_TAG}}
VERSION=${VERSION:-""}
if [ -z "${VERSION}" ]; then
VERSION=$(git describe --match 'v[0-9]*' --abbrev=0 | tr -d 'v')
fi
export VERSION

cd /nginx-agent/

Expand Down

0 comments on commit ef6a021

Please sign in to comment.