Skip to content

Commit

Permalink
Handle empty ldflags (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoubaldo authored Dec 11, 2024
1 parent 9942c22 commit 8dbc999
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dbc999

Please sign in to comment.