summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <Luke Smith>2022-06-14 07:45:16 -0600
committerLuke Smith <Luke Smith>2022-06-14 07:45:16 -0600
commit72fcb51e2434afe4e672019c5fce08d7fdfa8b86 (patch)
treed85b9a6e692a2caca9989e50dfa0cd0409230152
parentb4b1323a25474864730e0159c9f29c1b96712529 (diff)
remove harmless sed error msg if no muttrc
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 04361fc..d8d4d73 100755
--- a/bin/mw
+++ b/bin/mw
@@ -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