Files
infra/scripts/update_protonmail_bridge_secret.sh
2026-03-17 22:12:05 +01:00

20 lines
425 B
Bash
Executable File

#!/usr/bin/env sh
set -eu
printf "Proton Bridge password: "
stty -echo
IFS= read -r proton_bridge_password
stty echo
printf "\n"
if [ -z "$proton_bridge_password" ]; then
printf "Error: empty password, nothing stored.\n" >&2
exit 1
fi
printf "%s" "$proton_bridge_password" \
| secret-tool store --label="ProtonMail Bridge" protonmail-bridge protonmail
printf "ProtonMail Bridge secret updated in GNOME Keyring.\n"