diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-02-22 08:16:10 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-02-22 08:16:10 -0500 |
commit | 71c80b72d555a84b1b66ced9c25b72e57b48f0c0 (patch) | |
tree | 3ec47585d9d91222abf838edfa4befffa2f89b4b /mw | |
parent | fb3a0a285f7862579833918935f7c71b7a146ce4 (diff) |
ui fix
Diffstat (limited to 'mw')
-rwxr-xr-x | mw | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -251,9 +251,9 @@ wipe () { rm -rf "$HOME/.config/offlineimap/config" "$accdir" "$creddir" "$muttd [ -z "$gpgemail" ] && askgpg pick() { \ - numbered="$(grep "^accounts *=" "$HOME/.config/offlineimap/config" | sed 's/accounts *= *//g;s/,/ /g;s/ \+/\n/g' | nl)"# > "$tmpdir/numbered" + numbered="$(grep "^accounts *=" "$HOME/.config/offlineimap/config" | sed 's/accounts *= *//g;s/,/ /g;s/ \+/\n/g' | nl)" + [ "$(echo "$numbered" | wc -w)" = 0 ] && printf "No accounts to delete.\\n" && return 1 printf "Select (an) account(s) to %s.\\n" "$1" - [ -z "$numbered" ] || return 1 echo "$numbered" read -r input title="$(echo "$numbered" | grep "$input" | awk '{print $2}')" |