Fix an error when not downloading packages

When not downloading packages, the function "get_sources" returns
early because it begins with:
[ "$GETPKG" = y ] || return
The problem is that in this case it returns with an exit code
inherited from the last executed instruction, which is the
test (and therefore "false"). The solution is to change to
return 0.
This commit is contained in:
Pierre Labastie 2022-06-14 18:55:36 +02:00
parent 55e82d2ae0
commit ff30640702

View file

@ -5,7 +5,7 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if
#----------------------------# #----------------------------#
# Test if the packages must be downloaded # Test if the packages must be downloaded
[ "$GETPKG" = y ] || return [ "$GETPKG" = y ] || return 0
local URL FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE WGETPARAM MAYBEMORE local URL FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE WGETPARAM MAYBEMORE