diff options
author | Luke Smith <luke@lukesmith.xyz> | 2022-11-15 14:57:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 14:57:15 +0000 |
commit | 4413cfebea81393866e2e2b9048cf7a4e1492b55 (patch) | |
tree | 327b35235c9313f2a813614e7e2d54cf546b38ea | |
parent | 7978f41c6d3974471be05a7a6a5c5abd141139fa (diff) | |
parent | 05b830042230e3ac553a74a04607cd083b88096d (diff) |
Merge pull request #894 from alembiq/master
parse pop config only when file exists
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index a474695..1855ded 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -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 |