fix junk rm
This commit is contained in:
parent
f106dbd363
commit
eb51f388cd
2
bin/mw
2
bin/mw
@ -182,7 +182,7 @@ formatShortcut() { \
|
|||||||
|
|
||||||
tryconnect() { mkdir -p "$maildir/$title"
|
tryconnect() { mkdir -p "$maildir/$title"
|
||||||
if mailboxes="$(mbsync -l "$title" | sed 's/\//./')" >/dev/null 2>&1 && [ -n "$mailboxes" ]; then
|
if mailboxes="$(mbsync -l "$title" | sed 's/\//./')" >/dev/null 2>&1 && [ -n "$mailboxes" ]; then
|
||||||
[ "$accounttype" = "online" ] && sed -ibu "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc" ; rm -f "$mbsync"bu
|
[ "$accounttype" = "online" ] && sed -ibu "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc" ; rm -f "$mbsyncrc"bu
|
||||||
printf "\033[32mMailboxes detected.\033[0m\\n"
|
printf "\033[32mMailboxes detected.\033[0m\\n"
|
||||||
echo "$mailboxes" | xargs -I {} mkdir -p "$maildir/$title/{}"
|
echo "$mailboxes" | xargs -I {} mkdir -p "$maildir/$title/{}"
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user