Skip to content

Commit

Permalink
simplier detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Sep 3, 2011
1 parent ddd6e9b commit 6d48997
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions bin/detect
Expand Up @@ -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.