summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-10-28 11:49:18 -0400
committerGitHub <noreply@github.com>2020-10-28 11:49:18 -0400
commit5c8d38f9075755f1f573739f7d6a8de8467f6198 (patch)
tree986706159140c2bec742996e712945792857264f /bin/mw
parenta22d223d7988538560b1227747699d16ff7114b2 (diff)
parent16a5a450a4e9d65bbf6823a95ac37de9d2ed2aec (diff)
Merge pull request #554 from inktrap/master
extend list to also work for symlinked accounts
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 11d59e9..af4d785 100755
--- a/bin/mw
+++ b/bin/mw
@@ -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" ;}