aboutsummaryrefslogtreecommitdiffstats
path: root/got
diff options
context:
space:
mode:
Diffstat (limited to 'got')
-rwxr-xr-xgot2
1 files changed, 1 insertions, 1 deletions
diff --git a/got b/got
index 6dce1ff..9948511 100755
--- a/got
+++ b/got
@@ -67,7 +67,7 @@ _login ()
if [ ! "${user%@*}" = "${user}" ]; then
setsid -c @ssh@ ${user} || sleep 3
# The sleep allows you to see any error you made
- elif [ "${user%%-*}" = "" ]; then
+ elif [ ! "${user}" = "" ] && [ "${user%%-*}" = "" ]; then
stty -icanon -echo -isig -ix{on,off,any}
echo -e '\e[01;31mNice try! Sleeping for 10 minutes...\e[00m'
sleep 600