summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-18 09:11:17 -0800
committerRuss Cox <rsc@golang.org>2009-11-18 09:11:17 -0800
commit0d15a5437697094f9165b63b933192b36193a2df (patch)
tree944808c6904310e03dd53529090aa4b5fc31bdaf
parentcba2fe2462fda1fe7b265f8056a89e6f6e06e938 (diff)
downloadgolang-0d15a5437697094f9165b63b933192b36193a2df.tar.gz
make all.bash finish on FreeBSD
R=dho CC=golang-dev http://codereview.appspot.com/156067
-rwxr-xr-xdoc/progs/run2
-rwxr-xr-xmisc/cgo/stdio/test.bash2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/progs/run b/doc/progs/run
index 486ef2680..46de91250 100755
--- a/doc/progs/run
+++ b/doc/progs/run
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
diff --git a/misc/cgo/stdio/test.bash b/misc/cgo/stdio/test.bash
index 82e3f7b45..8918aab92 100755
--- a/misc/cgo/stdio/test.bash
+++ b/misc/cgo/stdio/test.bash
@@ -3,6 +3,8 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
+if [ "$(uname)" = "FreeBSD" ]; then exit 0; fi
+
set -e
gomake hello fib chain
echo '*' hello >run.out