From 8dbc9990292b456ae78e728c7cf7b857b821faac Mon Sep 17 00:00:00 2001 From: Joao Ubaldo <3534309+joaoubaldo@users.noreply.github.com> Date: Wed, 11 Dec 2024 02:14:23 +0200 Subject: [PATCH] Handle empty ldflags (#180) --- release.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 2acfdf0..7cab25e 100755 --- a/release.sh +++ b/release.sh @@ -61,10 +61,7 @@ if [ ${INPUT_GOOS} == 'windows' ]; then fi # prefix for ldflags -LDFLAGS_PREFIX='' -if [ ! -z "${INPUT_LDFLAGS}" ]; then - LDFLAGS_PREFIX="-ldflags" -fi +LDFLAGS_PREFIX='-ldflags' # fulfill GOAMD64 option if [ ! -z "${INPUT_GOAMD64}" ]; then