feat(install): unlock Bitwarden before setup
Calls `email-mcp login` before `email-mcp setup` so the secret store is ready to persist the IMAP password. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
51dda82cd0
commit
1e0bdfc42d
1 changed files with 7 additions and 0 deletions
|
|
@ -388,6 +388,13 @@ run_setup_wizard() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ui_info "Déverrouillage Bitwarden avant le setup..."
|
||||||
|
if [ -t 2 ] && [ -r /dev/tty ] && [ -w /dev/tty ]; then
|
||||||
|
env "${PROFILE_ENV}=${profile}" "$binary_path" login < /dev/tty > /dev/tty
|
||||||
|
else
|
||||||
|
env "${PROFILE_ENV}=${profile}" "$binary_path" login
|
||||||
|
fi
|
||||||
|
|
||||||
ui_info "Lancement de $BINARY_NAME setup"
|
ui_info "Lancement de $BINARY_NAME setup"
|
||||||
if [ -t 2 ] && [ -r /dev/tty ] && [ -w /dev/tty ]; then
|
if [ -t 2 ] && [ -r /dev/tty ] && [ -w /dev/tty ]; then
|
||||||
env "${PROFILE_ENV}=${profile}" "$binary_path" setup < /dev/tty > /dev/tty
|
env "${PROFILE_ENV}=${profile}" "$binary_path" setup < /dev/tty > /dev/tty
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue