Commit 7bb1d7cd authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce is_one_girar_name

parent edc7436f
......@@ -48,6 +48,18 @@ is_girar_name()
echo "$1" | grep -q "^git\."
}
is_one_girar_name()
{
local i
local RES=""
for i in $@ ; do
[ -z "$RES" ] || return
is_girar_name "$i" || return
RES="$i"
done
[ -n "$RES" ]
}
_list_git_package()
{
while [ -n "$1" ] ; do
......
......@@ -4,3 +4,12 @@
load_mod git
get_remote_git_list
#REMOTELIST=$(get_remote_git_list)
#if [ "$(echo $REMOTELIST | cut -d" " -f1)" = "$REMOTELIST" ] ; then
# echo "diag a one name"
#fi
if is_one_girar_name "$(get_remote_git_list)" ; then
echo "diag as one name"
fi
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