fixes view session when there is only one session

This commit is contained in:
waldek 2022-01-17 11:49:34 +01:00
parent bd10cd17c2
commit 7dc957c4cd
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ HOSTNAME="$(hostname).$(grep domain /etc/resolv.conf | cut -d " " -f 2)"
function select_session () { function select_session () {
if [ $(echo $SESSIONS | wc -w) == 1 ]; then if [ $(echo $SESSIONS | wc -w) == 1 ]; then
SOCKET=$SOCKETS$SESSIONS SOCKET=$SOCKETS$SESSIONS
echo $SOCKET view_session
else else
echo "please choose a session to view: (or exit to quit)" echo "please choose a session to view: (or exit to quit)"
select session in $(echo $SESSIONS); do select session in $(echo $SESSIONS); do