From 3b8fcaf747915696886a3f577004dd51de42481b Mon Sep 17 00:00:00 2001 From: edwark43 <97860398+edwark43@users.noreply.github.com> Date: Wed, 27 Dec 2023 18:40:43 +0000 Subject: [PATCH] Fixed setsysvars so it will detect if something changes --- misc/bin/setsysvars | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/misc/bin/setsysvars b/misc/bin/setsysvars index 1f94988..d793bd6 100755 --- a/misc/bin/setsysvars +++ b/misc/bin/setsysvars @@ -1,7 +1,5 @@ #!/usr/bin/env bash -SFILE="$HOME/.local/bin/.sys" - function get_values() { DEFNETWORK=$(ip route | grep '^default' | awk '{print $5}' | head -n1) @@ -41,8 +39,5 @@ function set_values() { } -if [[ ! -f "$SFILE" ]]; then - get_values - set_values - touch "$SFILE" -fi \ No newline at end of file +get_values +set_values \ No newline at end of file