diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-10-28 11:49:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 11:49:18 -0400 |
commit | 5c8d38f9075755f1f573739f7d6a8de8467f6198 (patch) | |
tree | 986706159140c2bec742996e712945792857264f /bin | |
parent | a22d223d7988538560b1227747699d16ff7114b2 (diff) | |
parent | 16a5a450a4e9d65bbf6823a95ac37de9d2ed2aec (diff) |
Merge pull request #554 from inktrap/master
extend list to also work for symlinked accounts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ do [ -f "$x" ] && sslcert="$x" && break done || { echo "CA Certificate not found. Please install one or link it to /etc/ssl/certs/ca-certificates.crt" && exit 1 ;} -getaccounts() { accounts="$(find "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /;s/\.muttrc$//" | sort -n)" ;} +getaccounts() { accounts="$(find -L "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /;s/\.muttrc$//" | sort -n)" ;} list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" ;} |