Commit 651aa25a authored by Vitaly Lipatov's avatar Vitaly Lipatov

spec: fix get spec path

parent eec66586
......@@ -215,7 +215,7 @@ LISTRPMARGS=$@
set_girar_host $1 && shift
parse_cmd_pre "$@"
parse_cmd_pre_spec "$@"
mygetopts $LISTARGS
......
......@@ -229,7 +229,7 @@ get_gear_rule_spec()
{
local rules=$(get_gear_rules)
[ -r "$rules" ] || return
local SPEC="$(grep "^spec:" $rules 2>/dev/null | cut -d" " -f2)"
local SPEC="$(grep "^spec:" $rules 2>/dev/null | sed -e "s/spec:[ ]*//g")"
test -r "$(get_root_git_dir)/$SPEC" && echo $(get_root_git_dir)/$SPEC
}
......
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