download: check for non-existent script in loop
Signed-off-by: Leah Rowe <leah@libreboot.org>fsdg20230625
parent
b4f1804e48
commit
a232f9c575
3
download
3
download
|
@ -48,6 +48,9 @@ main()
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${program}" = "all" ]; then
|
elif [ "${program}" = "all" ]; then
|
||||||
for downloadProgram in ${download}/*; do
|
for downloadProgram in ${download}/*; do
|
||||||
|
if [ ! -f "${downloadProgram}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
"${downloadProgram}"
|
"${downloadProgram}"
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue