Commit 65caf143 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix set_gear_host()

parent 90666309
...@@ -92,7 +92,13 @@ is_one_girar_name() ...@@ -92,7 +92,13 @@ is_one_girar_name()
set_gear_host() set_gear_host()
{ {
assert_var GIRARHOST # if no default, set default GIRARHOST from ~/.ssh/config
if [ -z "$GIRARHOST" ] ; then
GIRARHOST=$(get_girar_host_from_ssh)
#[ -n "$GIRARHOST" ] || fatal "Can't get default girar alias (like git.alt) from ~/.ssh/config"
fi
#assert_var GIRARHOST
GITHOST="$GIRARHOST" GITHOST="$GIRARHOST"
GEARHOST="$GITHOST" GEARHOST="$GITHOST"
[ "$GEARHOST" = "gitery" ] && GEARHOST="gyle" && return [ "$GEARHOST" = "gitery" ] && GEARHOST="gyle" && return
...@@ -129,12 +135,6 @@ set_girar_host() ...@@ -129,12 +135,6 @@ set_girar_host()
return 1 return 1
fi fi
# if no default, set default GIRARHOST from ~/.ssh/config
if [ -z "$GIRARHOST" ] ; then
GIRARHOST=$(get_girar_host_from_ssh)
#[ -n "$GIRARHOST" ] || fatal "Can't get default girar alias (like git.alt) from ~/.ssh/config"
fi
set_gear_host set_gear_host
return 1 return 1
} }
......
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