diff --git a/snapshotter.sh b/snapshotter.sh index c13db3fcfca8c2a57126510b0d766fed3302e9f6..8de6b5d38a3ddbec86ec49793544bec67de6da53 100755 --- a/snapshotter.sh +++ b/snapshotter.sh @@ -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]}"