From 29f1900b5ce0b37156881b672c3892ab18290877 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Sep 2013 23:53:00 +0200 Subject: fix bug introduced with portability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- got | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'got') 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 -- cgit v1.2.3-70-g09d2