Only ask for logout when applicable

This commit is contained in:
Manuel Thalmann 2024-09-19 23:48:29 +02:00
parent cd3e603a45
commit 03f7a80193

View file

@ -49,6 +49,7 @@ begin
"Terminal=false" ( "Terminal=false" (
printf "%s " \ printf "%s " \
"Exec=env" \ "Exec=env" \
"VALHALLA_REQUEST_LOGOUT=1" \
"CONFIG_NAME=$(echo "$CONFIG_NAME" | string escape)" \ "CONFIG_NAME=$(echo "$CONFIG_NAME" | string escape)" \
"konsole -e fish $(realpath (status filename) | string escape) userConfig" "konsole -e fish $(realpath (status filename) | string escape) userConfig"
) )
@ -100,7 +101,10 @@ begin
end end
echo "rclone was configured successfully!" echo "rclone was configured successfully!"
read -P "Please log out"
if [ -n "$VALHALLA_REQUEST_LOGOUT" ]
read -P "Please log out"
end
end end
end end
end end