From e017d8fb6429f32cd2a14dedad30aade9480af49 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 12 Jul 2024 00:40:48 +0200 Subject: [PATCH] Prevent dangling `tmux` sessions --- scripts/Common/Scripts/wait-network.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Common/Scripts/wait-network.fish b/scripts/Common/Scripts/wait-network.fish index 8b2b1e9a..c1cbb9a5 100644 --- a/scripts/Common/Scripts/wait-network.fish +++ b/scripts/Common/Scripts/wait-network.fish @@ -4,9 +4,8 @@ function waitNetwork -a witness set -l codeFile (mktemp) if [ -z "$witness" ] - tmux new-session -d 'cat /etc/motd; echo "$(tput bold)Please establish an internet connection…$(tput sgr0)"; $SHELL' - if not systemctl --quiet is-active network-online.target + 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"