Skip to content

Commit

Permalink
Remove bashisms (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick authored Aug 28, 2020
1 parent 4765075 commit 9b9e54a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh

# Copyright (c) 2019 The Decred developers
# Use of this source code is governed by the ISC
Expand All @@ -7,7 +7,7 @@
set -ex

TAG=$1
REL=(-ldflags "-buildid= -X main.appBuild=release")
LDFLAGS="-buildid= -X main.appBuild=release"

PWD=$(pwd)
PACKAGE=dcrinstall
Expand All @@ -29,7 +29,7 @@ for i in $SYS; do
fi
echo "Building:" $OS $ARCH
env CGO_ENABLED=0 GOOS=$OS GOARCH=$ARCH GOARM=$ARM GOFLAGS= \
go build -trimpath -tags 'safe,netgo' -o $OUT "${REL[@]}" ./cmd/dcrinstall
go build -trimpath -tags 'safe,netgo' -o $OUT -ldflags="${LDFLAGS}" ./cmd/dcrinstall
done

(cd $MAINDIR && openssl sha256 -r * > dcrinstall-$TAG-manifest.txt)

0 comments on commit 9b9e54a

Please sign in to comment.