aboutsummaryrefslogtreecommitdiff
path: root/src/iostest.bash
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-03-10 17:15:46 +0000
committerIan Lance Taylor <iant@golang.org>2017-03-14 21:46:31 +0000
commita9824cd47c1927ffc4eca040d60aecaa26130329 (patch)
tree6dca9d4b8ba59f296165bc41ec3d66b0f398ade7 /src/iostest.bash
parent723ba180b39969463f3644bac6422f0f81da26ea (diff)
downloadgo-a9824cd47c1927ffc4eca040d60aecaa26130329.tar.xz
*.bash: always use the same string equality operator
POSIX Shell only supports = to compare variables inside '[' tests. But this is Bash, where == is an alias for =. In practice they're the same, but the current form is inconsisnent and breaks POSIX for no good reason. Change-Id: I38fa7a5a90658dc51acc2acd143049e510424ed8 Reviewed-on: https://go-review.googlesource.com/38031 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/iostest.bash')
-rwxr-xr-xsrc/iostest.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iostest.bash b/src/iostest.bash
index 5e09894852..595b675744 100755
--- a/src/iostest.bash
+++ b/src/iostest.bash
@@ -24,11 +24,11 @@ if [ "$GOARCH" != "arm" ] && [ "$GOARCH" != "arm64" ]; then
echo "iostest.bash requires GOARCH=arm or GOARCH=arm64, got GOARCH=$GOARCH" 1>&2
exit 1
fi
-if [ "$GOARCH" == "arm" ]; then
+if [ "$GOARCH" = "arm" ]; then
export GOARM=7
fi
-if [ "$1" == "-restart" ]; then
+if [ "$1" = "-restart" ]; then
# Reboot to make sure previous runs do not interfere with the current run.
# It is reasonably easy for a bad program leave an iOS device in an
# almost unusable state.
@@ -60,7 +60,7 @@ GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build \
-o ../bin/go_darwin_${GOARCH}_exec \
../misc/ios/go_darwin_arm_exec.go
-if [ "$GOIOS_DEV_ID" == "" ]; then
+if [ "$GOIOS_DEV_ID" = "" ]; then
echo "detecting iOS development identity"
eval $(GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go run ../misc/ios/detect.go)
fi