remove output when Session "User" not exist
This commit is contained in:
parent
d4516a55a6
commit
28aabb649e
1 changed files with 2 additions and 1 deletions
|
@ -91,8 +91,9 @@ if ! $SSHS; then
|
|||
if test ! $TMUX && test $TERM != screen; then
|
||||
loginfo "no screen"
|
||||
# if test $(systemctl status tmux@${USER}.service 1>/dev/null 2>&1; echo $? ) -eq 0; then
|
||||
if tmux has-session -t User || tmux has-session -t "${USER}"; then
|
||||
if tmux has-session -t User > /dev/null || tmux has-session -t "${USER}"; then
|
||||
loginfo "tmux@${USER} is running"
|
||||
loginfo "$(tmux list-sessions)"
|
||||
STARTTMUXDEFAULT=${STARTTMUXREMOTEDEFAULT}
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue