Only ask for logout when applicable
This commit is contained in:
parent
8584eef0ec
commit
3a5a0a5e19
1 changed files with 5 additions and 1 deletions
|
@ -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,10 +101,13 @@ begin
|
||||||
end
|
end
|
||||||
|
|
||||||
echo "rclone was configured successfully!"
|
echo "rclone was configured successfully!"
|
||||||
|
|
||||||
|
if [ -n "$VALHALLA_REQUEST_LOGOUT" ]
|
||||||
read -P "Please log out"
|
read -P "Please log out"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
runInstaller $argv
|
runInstaller $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue