diff options
-rwxr-xr-x | functions/firmwarelists.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/firmwarelists.sh b/functions/firmwarelists.sh index bf5c177ca..c1b7a598b 100755 --- a/functions/firmwarelists.sh +++ b/functions/firmwarelists.sh @@ -40,6 +40,10 @@ Firmware_List_From_Contents () { # If not cached, download if [ ! -e "${CONTENTS_FILE}" ] then + # Contents-all.gz does not exist in Buster and other older versions + if ! wget --quiet --spider ${WGET_OPTIONS} "${CONTENTS_URL}"; then + continue + fi wget ${WGET_OPTIONS} "${CONTENTS_URL}" -O "${CONTENTS_FILE}" fi |