Draw the logout prompt on the terminal and describe what a failed China switch leaves

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 21:23:13 -04:00
1 parent 7f0c94d480
commit df44695ea7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ else
prompt="Log out now to switch to English and the global mirrors?" log_out="Log out now" later="Later"
reminder="Region set to Global. Log back in to switch to English and the global mirrors."
fi
if [[ -t 0 && -t 1 ]] && gum confirm --affirmative "$log_out" --negative "$later" "$prompt"; then
if [[ -t 0 && -t 1 ]] && gum confirm --affirmative "$log_out" --negative "$later" "$prompt" 2>&1; then
omarchy-system-logout
else
echo "$reminder"