diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-01-06 21:25:09 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-01-06 21:25:09 -0500 |
commit | 78030885b4e3153b69d408424beeb544adc093a8 (patch) | |
tree | e5b07de755d71c04b713d811e5c6ec82abfbd72b /bin | |
parent | ca9f1a12ccbc01889fd2a1257462594e4d2ea272 (diff) |
fix
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -229,8 +229,8 @@ Junk Trash Sent Archive" && return 0 - info="$(curl -s --user "$login:$(pass $pass_prefix$fulladdr)" --url "${protocol:-imaps}://$imap")" || - { echo "Log-on not successful." ; exit 1 ;} + info="$(curl -s --user "$login:$(pass $pass_prefix$fulladdr)" --url "${protocol:-imaps}://$imap")" + [ -z "$info" ] && echo "Log-on not successful." && return 1 mailboxes="$(echo "$info" | sed "s/.*\" //" | tr -d '
')" } |