aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Peppe <rogpeppe@gmail.com>2010-01-12 09:45:11 -0800
committerRobert Griesemer <gri@golang.org>2010-01-12 09:45:11 -0800
commit9d4d7d8f991ad3b27f223a2a987f2517971cd868 (patch)
treee8c3087f9f4e67f6b86313fcd0c3b599027caec2
parent46206c52e3ee0ed476aa8eb1831ecbe9d933189c (diff)
downloadgo-9d4d7d8f991ad3b27f223a2a987f2517971cd868.tar.gz
go-9d4d7d8f991ad3b27f223a2a987f2517971cd868.zip
Fix bug that prevented the gofmt test script being run on more
than one explicitly named file. R=rsc, gri CC=golang-dev https://golang.org/cl/186095
-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 d76d89becc..59d5117b24 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