readarray - shell
#part of the code, inside a function
local pending
readarray -d $'\0' pending < \
<(find /var/lib/fwupd/pending -type f -size -100c -print0 2>/dev/null)
#part of the code, inside a function
local pending
readarray -d $'\0' pending < \
<(find /var/lib/fwupd/pending -type f -size -100c -print0 2>/dev/null)