Silence unnecessary console output

This commit is contained in:
Manuel Thalmann 2024-10-31 15:06:58 +01:00
parent ab8f65b22a
commit a34ee1847b

View file

@ -10,7 +10,7 @@ function waitNetwork -a witness
end
if [ -z "$witness" ]
if not testNetwork
if not testNetwork &>/dev/null
tmux new-session -d 'cat /etc/motd; echo "$(tput bold)Please establish an internet connection...$(tput sgr0)"; $SHELL'
fish (status filename) true &
set -l pid "$last_pid"
@ -33,7 +33,7 @@ function waitNetwork -a witness
while true
set x (math $x + 1)
if testNetwork
if testNetwork &>/dev/null
tmux kill-session &>/dev/null
break
else