aboutsummaryrefslogtreecommitdiffstats
path: root/got
diff options
context:
space:
mode:
Diffstat (limited to 'got')
-rwxr-xr-xgot4
1 files changed, 2 insertions, 2 deletions
diff --git a/got b/got
index 1e55158..990d6b7 100755
--- a/got
+++ b/got
@@ -58,8 +58,8 @@ login_function=_login
function _login
{
if [ ! "${user/@/}" = "${user}" ]; then
- export GOT_COMMAND="@ssh@ ${user}"
- setsid -c login -p -f @sshlogin@
+ setsid -c @ssh@ ${user} || sleep 3
+ # The sleep allows you to see any error you made
elif [ "${user::1}" = "-" ]; then
stty -icanon -echo -isig -ix{on,off,any}
echo $'\e[01;31mNice try! Sleeping for 10 minutes...\e[00m'