diff options
author | inktrap <inktrap@inktrap.org> | 2020-10-28 01:04:14 +0100 |
---|---|---|
committer | inktrap <inktrap@inktrap.org> | 2020-10-28 01:04:14 +0100 |
commit | 16a5a450a4e9d65bbf6823a95ac37de9d2ed2aec (patch) | |
tree | 916ee11e0d8b2fe9bf59864a4b1194c4228fad17 /bin | |
parent | 96c2492e6de2b7052f049e7645d182b883a107f3 (diff) |
use -L
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,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 -or -type l | 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" ;} |