Commit 15fe619b authored by Vitaly Lipatov's avatar Vitaly Lipatov

check spec in repo/.gear too

parent f723fdd6
......@@ -184,10 +184,11 @@ set_specdir()
get_gear_spec()
{
local trySpec=""
# check locally only if in gear repo (useful if spec in ~/.gear)
# check locally only if in gear repo
is_gear && trySpec=$(echo *.spec)
# if not in local dir, check spec in git root dir
[ -f "$trySpec" ] || trySpec=`echo $(get_root_git_dir)/*.spec`
[ -f "$trySpec" ] || trySpec=`echo $(get_root_git_dir)/.gear/*.spec`
# printout nothing if can't get spec
[ -f "$trySpec" ] || trySpec=""
echo $trySpec
......
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