Fix entrypoint so it works correctly on init #57

This commit is contained in:
Xiaonan Shen 2022-05-28 12:40:24 +08:00 committed by GitHub
commit 812646acb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ if [[ $1 == init ]]; then
gpg --generate-key --batch /protonmail/gpgparams
pass init pass-key
# Kill the other instance as only one can be running at a time
pkill protonmail-bridge
# Login
/protonmail/proton-bridge --cli $@