Sfoglia il codice sorgente

remove bashism, fix #752

tags/v3.3
Luke Smith 3 anni fa
parent
commit
8239a7d5ca
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4C50B54A911F6252
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      bin/mw

+ 3
- 2
bin/mw Vedi File

@@ -182,7 +182,7 @@ askinfo() { \
[ -z "$fulladdr" ] && echo "Give the full email address to add:" &&
read -r fulladdr
while ! echo "$fulladdr" | grep -qE "^.+@.+\.[A-Za-z]+$"; do
echo "\`$fulladdr\` is not a valid email address. Please retype the address:"
echo "$fulladdr is not a valid email address. Please retype the address:"
read -r fulladdr
done
getaccounts; echo "$accounts" | grep -q "\s$fulladdr$" 2>/dev/null &&
@@ -228,7 +228,8 @@ getboxes() { if [ -n "${force+x}" ] ; then
[ "$type" = "pop" ] && mailboxes="INBOX"
getaccounts; for x in $(seq 1 9); do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done
toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )"
IFS=$'\n'
IFS='
'
for x in $mailboxes; do
case "$x" in
*[Ss][Ee][Nn][Tt]*) setBox record "$x"; formatShortcut s sent "$x" ;;


Caricamento…
Annulla
Salva