From 7dc957c4cd22185e6405ebd2491ef77336ea739c Mon Sep 17 00:00:00 2001 From: waldek Date: Mon, 17 Jan 2022 11:49:34 +0100 Subject: [PATCH] fixes view session when there is only one session --- tmux_viewer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux_viewer.sh b/tmux_viewer.sh index 344dbad..06bfb89 100755 --- a/tmux_viewer.sh +++ b/tmux_viewer.sh @@ -8,7 +8,7 @@ HOSTNAME="$(hostname).$(grep domain /etc/resolv.conf | cut -d " " -f 2)" function select_session () { if [ $(echo $SESSIONS | wc -w) == 1 ]; then SOCKET=$SOCKETS$SESSIONS - echo $SOCKET + view_session else echo "please choose a session to view: (or exit to quit)" select session in $(echo $SESSIONS); do