summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Peppe <rogpeppe@gmail.com>2010-01-12 09:45:11 -0800
committerRoger Peppe <rogpeppe@gmail.com>2010-01-12 09:45:11 -0800
commit71156986095f0bebbc900f0eaf0a1da3724579e6 (patch)
tree4b5fac28016702b681def09b6eed83a57468ac84 /src
parentb53d3e5a5b414f7db20741e688d807002d596a35 (diff)
downloadgolang-71156986095f0bebbc900f0eaf0a1da3724579e6.tar.gz
Fix bug that prevented the gofmt test script being run on more
than one explicitly named file. R=rsc, gri CC=golang-dev http://codereview.appspot.com/186095 Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cmd/gofmt/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gofmt/test.sh b/src/cmd/gofmt/test.sh
index d76d89bec..59d5117b2 100755
--- a/src/cmd/gofmt/test.sh
+++ b/src/cmd/gofmt/test.sh
@@ -129,7 +129,7 @@ runtest() {
runtests() {
- if [ "$@" = "" ]; then
+ if [ $# = 0 ]; then
runtest apply
# verify the pretty-printed files can be compiled with $GC again
# do it in local directory only because of the prerequisites required
@@ -146,7 +146,7 @@ runtests() {
# run over all .go files
-runtests "$*"
+runtests "$@"
cleanup
# done