diff options
author | Luke Smith <Luke Smith> | 2022-06-14 07:45:16 -0600 |
---|---|---|
committer | Luke Smith <Luke Smith> | 2022-06-14 07:45:16 -0600 |
commit | 72fcb51e2434afe4e672019c5fce08d7fdfa8b86 (patch) | |
tree | d85b9a6e692a2caca9989e50dfa0cd0409230152 | |
parent | b4b1323a25474864730e0159c9f29c1b96712529 (diff) |
remove harmless sed error msg if no muttrc
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,7 +224,7 @@ getboxes() { if [ -n "${force+x}" ] ; then mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d '\r')" fi [ "$type" = "pop" ] && mailboxes="INBOX" - for x in $(sed -n "/^macro.* i[0-9] / s/\(^macro.* i\| .*\)//gp " "$muttrc" | sort -u; echo 0); do + for x in $(sed -n "/^macro.* i[0-9] / s/\(^macro.* i\| .*\)//gp " "$muttrc" 2>/dev/null | sort -u; echo 0); do idnum=$((idnum + 1)) [ "$idnum" -eq "$x" ] || break done |