diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-04-24 08:48:08 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-04-24 08:48:08 -0400 |
commit | 7c06aaacb0f24c67f2591d52c186d5e2b8e6c9f0 (patch) | |
tree | 77c37a371cc5326ca74bb6860be2e274b73841f3 /bin | |
parent | c9efc9f85c4ff860fddc4f33af5f5117c1600da1 (diff) |
bad passwords cause error
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -175,7 +175,7 @@ formatShortcut() { \ done ;} tryconnect() { mkdir -p "$maildir/$title" - if mailboxes="$(mbsync -l "$title" | sed 's/\//./')" >/dev/null 2>&1; then + if mailboxes="$(mbsync -l "$title" | sed 's/\//./')" >/dev/null 2>&1 && [ -n "$mailboxes" ]; then [ "$accounttype" = "online" ] && sed -i "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc" printf "\033[32mMailboxes detected.\033[0m\\n" echo "$mailboxes" | xargs -I {} mkdir -p "$maildir/$title/{}" |