]> Cypherpunks repositories - gostls13.git/commitdiff
Fix bug that prevented the gofmt test script being run on more
authorRoger Peppe <rogpeppe@gmail.com>
Tue, 12 Jan 2010 17:45:11 +0000 (09:45 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 12 Jan 2010 17:45:11 +0000 (09:45 -0800)
than one explicitly named file.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/186095

src/cmd/gofmt/test.sh

index d76d89becc0c11522057946403b2cc063063e887..59d5117b24704c9cccff89e2063f52e523a8af14 100755 (executable)
@@ -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