Commit 4350aa81 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add IGNOREGEAR env var support

parent abf651ce
......@@ -25,8 +25,11 @@ RPMBUILD=rpmbuild
is_git()
{
local DIR=$1
[ -n "$IGNOREGEAR" ] && return 1
[ -n "$DIR" ] && [ -d "$DIR/.git" ] && return 0
[ -n "$DIR" ] && [ -d "$DIR/.gear" ] && return 0
[ -d ".git" ] && return 0
[ -d ".gear" ] && return 0
# hack for support spec in some subdir
[ -d "../.gear" ] && return 0
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment