Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplier detection

  • Loading branch information...
commit 6d489979d0ccade1747b0b420fa6e11bee59998f 1 parent ddd6e9b
@bmizerany bmizerany authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 bin/detect
View
12 bin/detect
@@ -2,14 +2,10 @@
# bin/use <build-dir>
set -e
-build=$1
-
isgo() {
- [ -f src/all.sh ] ||
- (
- [ -d src ] &&
- find src -type f | egrep -q "\.go$"
- )
+ cd $1
+ [ -d src ]
+ find src -type f | egrep -q "\.go$"
}
-cd "$build" && isgo && echo "Go"
+isgo "$1" && echo "Go"
Please sign in to comment.
Something went wrong with that request. Please try again.