Shorter perl one-liner in _gpgconf
This commit is contained in:
parent
a1d53f8824
commit
ab80ddd379
|
@ -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]')
|
||||
|
|
Loading…
Reference in New Issue