Commit efee2d2f authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce assert_var

parent 92391a51
......@@ -87,6 +87,15 @@ print_list()
done
}
assert_var()
{
local i re
for i in $@ ; do
re=$(eval echo \$$i)
[ -n "$re" ] || fatal "assert: $i nonexist"
done
}
get_root_git_dir()
{
......
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