Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get-artifacts.sh: Don't reject index.html
Recursive wget on directories create index.html files that are not in the remote. It seems such files are unavoidable and are the result of how recursive wget on endpoints that send directory listing works - the index.html files contain the lists of files (on the subdir) that are to be retrieved from each subfolder. Rejecting 'index.html' files avoids having such spoofed files on the locally downloaded content, however, if the remote target directory contains index.html, it too would be rejected. This commit changes the wget invocation `--reject` argument so that the index.html files will be kept, rejecting only the files that match `index.html?*`. The downside is, each subfolder will include an index.html listing the contents of that specific subdir, even though the remote does not have such files. Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
- Loading branch information