+
+ if ! $mail_only && ! $pull_reexec ; then
+ if ! $force; then
+ if ! $old_shell switch-mail-host --check-installed; then
+ die "failed: $old_shell switch-mail-host --check-installed"
+ fi
+ fi
+ tmpd=$(mktemp -d)
+ files=(
+ /usr/local/{bin/{unsaved-buffers{,.el},switch-mail-host},lib/bash-bear}
+ )
+ m scp -F $HOME/.ssh/confighome \
+ ${files[@]/#/root@$old_host:} $tmpd
+ diff=false
+ for f in ${files[@]}; do
+ if ! diff -q $tmpd/${f##*/} $f; then
+ m install -T $tmpd/${f##*/} $f
+ diff=true
+ fi
+ done
+ if $diff; then
+ e "found different version on old_host=$old_hostname, reexecing"
+ m /usr/local/bin/switch-mail-host --pull-reexec "${orig_args[@]}"
+ exit 0
+ fi
+ rm -r -- $tmpd
+ fi
+