Silence unnecessary console output
This commit is contained in:
parent
ab8f65b22a
commit
a34ee1847b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue