Shorter perl one-liner in _gpgconf

This commit is contained in:
Score_Under 2021-02-04 14:45:30 +00:00
parent a1d53f8824
commit ab80ddd379
No known key found for this signature in database
GPG Key ID: A99742B6A92A14E8
1 changed files with 1 additions and 2 deletions

View File

@ -8,8 +8,7 @@
_gpgconf_component() {
local values=(
"${(@f)$(gpgconf --list-components \
| perl -lne 'my ($name, $desc, $x) = split /:/; print "${name}[$desc]"')}"
"${(@f)$(gpgconf --list-components | perl -F: -ale 'print "${F[0]}[$F[1]]"')}"
)
if [ "${action[2]}" = all ]; then
values+=('all[All daemon components]')