Browse Source

extend list to also work for symlinked accounts

tags/v3.1
inktrap 4 years ago
parent
commit
96c2492e6d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw View File

@@ -30,7 +30,7 @@ do
[ -f "$x" ] && sslcert="$x" && break [ -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 ;} 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 "$accdir" -type f -or -type l | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /;s/\.muttrc$//" | sort -n)" ;}


list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" ;} list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" ;}




Loading…
Cancel
Save