]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Session fixes
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 7 Mar 2018 07:29:28 +0000 (04:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 7 Mar 2018 07:29:28 +0000 (04:29 -0300)
session

diff --git a/session b/session
index c78631aebaaaa30a8a6732678e206cb96a975872..e39e4065ec6696b6a672073d240be48fdedd06f3 100755 (executable)
--- a/session
+++ b/session
@@ -184,9 +184,9 @@ function __session_open {
 # Dispatch
 if [ "$BASENAME" == "session-list" ]; then
   __session_list
-elif [ ! -z "$1" ] && [ "$BASENAME" == "session-chooser" ]; then
+elif [ "$BASENAME" == "session-chooser" ]; then
   __session_chooser
-elif [ ! -z "$1" ] && [ "$BASENAME" == "terminal-session-chooser" ]; then
+elif [ "$BASENAME" == "terminal-session-chooser" ]; then
   terminal session-chooser
 elif [ ! -z "$1" ] && echo "$1" | grep -q -- '--list'; then
   __session_list