On Thu, 19 Nov 2020 03:16:12 -0000, GitLab Bridge on behalf of Ben Crocker wrote: > I reworked the logic thus: > > floppylist=("$RpmDir"/"$ModDir"/extra/drivers/block/floppy.ko*) > if [[ -n ${floppylist[0]} && -f ${floppylist[0]} ]]; then > blacklist "floppy" > fi I like this. The -n is not needed, the array will always contain at least one item - either the first file found, or the glob itself. Jiri _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx