mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
20 lines
425 B
Bash
Executable File
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"
|