From 03f7a8019355e7b1fc9e0206c52662a4c92642c0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 19 Sep 2024 23:48:29 +0200 Subject: [PATCH] Only ask for logout when applicable --- scripts/Common/Software/rclone/main.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Software/rclone/main.fish b/scripts/Common/Software/rclone/main.fish index da9bb694..577ab8e4 100755 --- a/scripts/Common/Software/rclone/main.fish +++ b/scripts/Common/Software/rclone/main.fish @@ -49,6 +49,7 @@ begin "Terminal=false" ( printf "%s " \ "Exec=env" \ + "VALHALLA_REQUEST_LOGOUT=1" \ "CONFIG_NAME=$(echo "$CONFIG_NAME" | string escape)" \ "konsole -e fish $(realpath (status filename) | string escape) userConfig" ) @@ -100,7 +101,10 @@ begin end echo "rclone was configured successfully!" - read -P "Please log out" + + if [ -n "$VALHALLA_REQUEST_LOGOUT" ] + read -P "Please log out" + end end end end