From b5eb40940aa43eb1ae2763193ac2a158b7c76efe Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sat, 27 Oct 2012 12:56:41 -0700 Subject: [PATCH] Fixes to run with dash as /bin/sh --- bin/dist-unix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dist-unix.sh b/bin/dist-unix.sh index acc055e..34878ea 100755 --- a/bin/dist-unix.sh +++ b/bin/dist-unix.sh @@ -1,7 +1,7 @@ #!/bin/sh # Compile and package inbucket dist for unix -if [ "$1x" == "x" ]; then +if [ "${1}x" = "x" ]; then echo "Usage: $0 " 1>&2 exit 1 fi @@ -16,7 +16,7 @@ mkdir -p $tmpdir # Figure out our build env/target go env > $tmpdir/env -source $tmpdir/env +. $tmpdir/env distname="inbucket-${label}-${GOOS}_$GOARCH" distdir="$tmpdir/$distname"