fixes view session when there is only one session
This commit is contained in:
parent
bd10cd17c2
commit
7dc957c4cd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue