From 85cb51f71e5accfea7b6ec173ee6e7e4c7ec8f34 Mon Sep 17 00:00:00 2001 From: Thomas Schmauder Date: Fri, 10 Feb 2023 12:40:25 +0100 Subject: [PATCH] Anmeldenamen in eine Variable ausgelagert. --- v1.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v1.sh b/v1.sh index ce7e4a3..476cb88 100644 --- a/v1.sh +++ b/v1.sh @@ -22,7 +22,7 @@ VPN_USERNAME="$2" # "security find-generic-password -g -a foo" where foo is an account # in your OSX Keychain, to avoid passwords stored in plain text GET_VPN_PASSWORD="security find-generic-password -g -a $VPN_USERNAME 2>&1 >/dev/null | cut -d'\"' -f2" - +MEINE_MAIL="meine.mail@edu-up.de" # Command to determine if VPN is connected or disconnected VPN_CONNECTED="ifconfig | egrep -A1 'inet 172.[123][0-9]' |cut -d' ' -f2" # Command to run to disconnect VPN @@ -63,6 +63,6 @@ if [ -n "$(eval "$VPN_CONNECTED")" ]; then else echo "VPN ❌ | color=red" echo '---' - echo "Connect VPN | bash='$0' param1=connect param2=alessa.mielemeier@edu-up.de terminal=false refresh=true" + echo "Connect VPN | bash='$0' param1=connect param2=$MEINE_MAIL terminal=false refresh=true" exit fi