13 lines
247 B
Bash
13 lines
247 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
if [[ $1 == init ]]; then
|
|
gpg --generate-key --batch /protonmail/gpgparams
|
|
pass init pass-key
|
|
pkill protonmail-bridge || true
|
|
/protonmail/proton-bridge --cli "$@"
|
|
else
|
|
/protonmail/proton-bridge -n "$@"
|
|
fi
|