Bladeren bron
Merge pull request #554 from inktrap/master
extend list to also work for symlinked accounts
tags/v3.1
Luke Smith
4 jaren geleden
committed by
GitHub
bovenliggende
commit
5c8d38f907
Geen bekende sleutel gevonden voor deze handtekening in de database
GPG sleutel-ID: 4AEE18F83AFDEB23
1 gewijzigde bestanden met
toevoegingen van 1 en
1 verwijderingen
-
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" ;} |
|
|
|
|
|
|
|