From 6aa1cfda8eae760448df6266ca472922abeff0d9 Mon Sep 17 00:00:00 2001 From: itssct Date: Mon, 19 Jun 2023 14:40:39 +0200 Subject: [PATCH] funktion saveSettings verschoben --- bibVPN.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bibVPN.sh b/bibVPN.sh index 18936c6..16c7a19 100755 --- a/bibVPN.sh +++ b/bibVPN.sh @@ -42,6 +42,19 @@ SHOW_SETTINGS='true' SHOW_ICON='true' SHOW_COLOR='true' DEBUG_OUTPUT='false' + +function saveSettings(){ + echo "Speichere die Einstellungen" >> $logfile + echo "SHOW_SETTINGS='$SHOW_SETTINGS' + SHOW_ICON='$SHOW_ICON' + SHOW_COLOR='$SHOW_COLOR' + DEBUG_OUTPUT=$DEBUG_OUTPUT" |tee $SETTINGSFILE + + echo "Lade die Einstellungsdatei" >> $logfile + source $SETTINGSFILE + open swiftbar://refreshplugin?name=$(basename $0) +} + if [ -f $SETTINGSFILE ] ; then echo "Lade die Einstellungsdatei" >> $logfile source $SETTINGSFILE