Skip to content

Commit

Permalink
fix build-static.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 1, 2023
1 parent 99aca3a commit a3c3637
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ if [ -z "$FRANKENPHP_VERSION" ]; then
elif [ -d ".git/" ]; then
CURRENT_REF="$(git rev-parse --abbrev-ref HEAD)"
export CURRENT_REF
git checkout "v$FRANKENPHP_VERSION"

if echo "$FRANKENPHP_VERSION" | grep -q "."; then
# Tag
git checkout "v$FRANKENPHP_VERSION"
else
git checkout "$FRANKENPHP_VERSION"
fi
fi

bin="frankenphp-$os-$arch"
Expand Down

0 comments on commit a3c3637

Please sign in to comment.