Correctly suppress tmux output

This commit is contained in:
Price Hiller 2022-01-01 04:28:12 -06:00
parent 2f5b1d98ed
commit f2355c0cba

View File

@ -703,7 +703,7 @@ list_servers() {
if ((picked_option == 0)); then
log "debug" "Listing running servers"
local tmux_sessions
tmux_sessions="$(tmux list-sessions)" >/dev/null 2>&1
tmux_sessions="$(tmux list-sessions >/dev/null 2>&1)"
if [[ ! "${?}" -eq "0" ]]; then
important "No servers currently running."
fi