Commit 917c7ae1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

git: add is_girar_name for detect girar server name like git.alt or

git.eter
parent 42e20f38
......@@ -20,3 +20,8 @@ get_current_branch()
git branch | grep '^\*' | sed 's/^..//' | tr -d "\n"
}
# Check if $1 like git.alt or git.eter, git.something
is_girar_name()
{
echo "$1" | grep -q "^git\."
}
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