Skip to content

Commit

Permalink
fix(build): Use POSIX compatible comparison
Browse files Browse the repository at this point in the history
In CI were errors/warnings like:

    ./scripts/plugins.sh: 7: [: windowsx: unexpected operator

This comparison is compatible with more versions of bash and other
shells and should prevent these messages.
  • Loading branch information
tmessi committed Feb 17, 2022
1 parent 65c41e5 commit a2dc9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

BINARY_SUFFIX=""
if [ "${GOOS}x" == "windowsx" ]; then
if [ "${GOOS}x" = "windowsx" ]; then
BINARY_SUFFIX=".exe"
fi

Expand Down

0 comments on commit a2dc9df

Please sign in to comment.