summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-18 09:16:50 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-18 09:16:50 +0100
commita232f9c575c427e82a9f4ea191142cbfcbdefd9e (patch)
treea91dd754facb7f815ffc23373937d1ec96860e37
parentb4f1804e48148176ca7ad20bd2d39b86b7538844 (diff)
download: check for non-existent script in loop
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xdownload3
1 files changed, 3 insertions, 0 deletions
diff --git a/download b/download
index 9ff3a5d5..609feaac 100755
--- a/download
+++ b/download
@@ -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