Skip to content
Browse files

simplier detection

  • Loading branch information...
1 parent ddd6e9b commit 6d489979d0ccade1747b0b420fa6e11bee59998f @bmizerany bmizerany committed
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"

0 comments on commit 6d48997

Please sign in to comment.
Something went wrong with that request. Please try again.