Skip to content
Snippets Groups Projects
Verified Commit e46b4bb4 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Include index.php in the URL when downloading attachments

Without index.php it ends up downloading the new landing page, which
describes that GitLab is the future!
parent cc1626b4
No related branches found
No related tags found
No related merge requests found
Pipeline #88249 passed
......@@ -81,7 +81,7 @@ function download_attachment() {
options=(--output-document=attachment)
fi
wget "${options[@]}" \
"https://bugs.archlinux.org/?getfile=${2}" || { [[ ${?} = 3 ]] && echo "Error downloading attachment: ${2}" && cd .. && rmdir tmp "${2}" && cd ../../ || exit 1 && [[ ${3:-false} = true ]] && return; download_attachment "${1}" "${2}" "true"; return; }
"https://bugs.archlinux.org/index.php?getfile=${2}" || { [[ ${?} = 3 ]] && echo "Error downloading attachment: ${2}" && cd .. && rmdir tmp "${2}" && cd ../../ || exit 1 && [[ ${3:-false} = true ]] && return; download_attachment "${1}" "${2}" "true"; return; }
local files=(*)
filename="${files[0]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment