From 007dbf578e5820c854bcedb74eecf74ba3cbef13 Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Tue, 6 Aug 2024 18:18:59 -0700 Subject: [PATCH] Auto-update: Tue Aug 6 18:18:59 PDT 2024 --- vitals | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vitals b/vitals index 835e1c6..edd5d45 100755 --- a/vitals +++ b/vitals @@ -45,8 +45,8 @@ if command -v tailscale &> /dev/null; then # Parse exit node hostname if echo "$ts_exitnode_output" | grep -q 'selected'; then mullvad_exitnode=true - # Extract the hostname of the selected exit node, remove any newline characters, and take only the first occurrence - mullvad_hostname=$(echo "$ts_exitnode_output" | grep 'selected' | awk '{print $2}' | tr -d '\n' | awk -F'.' '{print $1"."$2"."$3"."$4}') + # Extract the hostname of the selected exit node, taking only the part before any newline + mullvad_hostname=$(echo "$ts_exitnode_output" | grep 'selected' | awk '{print $2}' | awk -F'\n' '{print $1}') else mullvad_exitnode=false mullvad_hostname=""