From 2b5f3dc0de528767ab621dce83fffeed88f4452e Mon Sep 17 00:00:00 2001 From: Mhd Sulhan Date: Sat, 26 Sep 2015 20:44:38 +0700 Subject: [PATCH] cmd/godoc: make setup-godoc-app.bash more portable Unlike in BSD, in GNU/Linux find option for -depth is without an argument. To make the command compatible in both system, use -mindepth and -maxdepth arguments. Change-Id: Ie82736fd2c28b6fe0f64dbfc7272f0e0f0d8e8df Reviewed-on: https://go-review.googlesource.com/15014 Reviewed-by: Brad Fitzpatrick --- cmd/godoc/setup-godoc-app.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/godoc/setup-godoc-app.bash b/cmd/godoc/setup-godoc-app.bash index 9d82cd74..a462ebe0 100755 --- a/cmd/godoc/setup-godoc-app.bash +++ b/cmd/godoc/setup-godoc-app.bash @@ -67,7 +67,7 @@ fetchGodoc() { go=$APPENGINE_SDK/goapp $go get -d -tags appengine $GODOC mkdir -p $APPDIR/$GODOC - cp $(find $($go list -f '{{.Dir}}' $GODOC) -type f -depth 1) $APPDIR/$GODOC/ + cp $(find $($go list -f '{{.Dir}}' $GODOC) -mindepth 1 -maxdepth 1 -type f) $APPDIR/$GODOC/ } makeAppYaml() {