Use continue instead of return, continue allows the loop to continue from the beginning instead of jumping completely out of the function.
This commit is contained in:
parent
aca70fdd7a
commit
134572c8e7
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if
|
|||
fi
|
||||
|
||||
# Deal with udev and bootscripts m5sum issue
|
||||
[[ $BOOKMD5 = "BOOTSCRIPTS-MD5SUM" ]] && return
|
||||
[[ $BOOKMD5 = "UDEV-MD5SUM" ]] && return
|
||||
[[ $BOOKMD5 = "BOOTSCRIPTS-MD5SUM" ]] && continue
|
||||
[[ $BOOKMD5 = "UDEV-MD5SUM" ]] && continue
|
||||
|
||||
# IF the md5sum does not match the existing files
|
||||
if ! echo "$MD5" | md5sum -c - >/dev/null ; then
|
||||
|
|
Reference in a new issue