Skip to content

Commit 200e679

Browse files
committed
Fix bashisms in the release scripts
1 parent 8194992 commit 200e679

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ROOT=$(dirname $(dirname $0))
66
cd $ROOT
77
FILENAME=rabbitmq-dump-queue
88
EXT=""
9-
if [ "$GOOS" == "windows" ] ; then
9+
if [ "$GOOS" = "windows" ] ; then
1010
EXT=".exe"
1111
fi
1212
go build -o bin/$FILENAME$EXT .

scripts/release

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
if [ "$1" == "" ] ; then
5+
if [ -z "$1" ] ; then
66
echo "Usage: $0 VERSION"
77
echo "Example: $0 v0.2"
88
exit 1
@@ -30,7 +30,7 @@ for os in linux darwin windows ; do
3030
cp README.md $releasedir/
3131
cp LICENSE $releasedir/
3232

33-
if [ "$os" == "linux" ] ; then
33+
if [ "$os" = "linux" ] ; then
3434
(cd release && tar czf $releasename.tgz $releasename)
3535
else
3636
(cd release && zip -qr $releasename.zip $releasename)

0 commit comments

Comments
 (0)