download: check for non-existent script in loop

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe 2023-05-18 09:16:50 +01:00
parent b4f1804e48
commit a232f9c575
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ main()
exit 0
elif [ "${program}" = "all" ]; then
for downloadProgram in ${download}/*; do
if [ ! -f "${downloadProgram}" ]; then
continue
fi
"${downloadProgram}"
done
exit 0