remove output when Session "User" not exist
This commit is contained in:
parent
354ed21889
commit
cd84947a94
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