Ver código fonte

parse pop config only when file exists

pull/894/head
Karel Křemel 1 ano atrás
committed by GitHub
pai
commit
05b8300422
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync Ver arquivo

@@ -79,7 +79,7 @@ if [ "$#" -gt "0" ]; then
fi
# TODO handle account passed from argument
[ -z "$accounts" ] && accounts="$(awk '/^Channel/ {print $2}' "$MBSYNCRC" 2>/dev/null)"
[ -z "$pop_accounts" ] && pop_accounts="$(awk '/^account/ {print $2}' "$MPOPRC" 2>/dev/null)"
[ -z "$pop_accounts" ] && [ -x $MPOPRC ] && pop_accounts="$(awk '/^account/ {print $2}' "$MPOPRC" 2>/dev/null)"

# Parallelize multiple accounts
for account in $accounts; do


Carregando…
Cancelar
Salvar