File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ _xpath_url() {
4949}
5050
5151echo + " curl -sSL $( quote " $DOWNLOADS_WEBPAGE_URL " ) " >&2
52- DOWNLOADS_WEBPAGE=" $( _curl " $DOWNLOADS_WEBPAGE_URL " | sed -e ' 1,/^$/d' ) "
52+ DOWNLOADS_WEBPAGE=" $( _curl " $DOWNLOADS_WEBPAGE_URL " | sed -e ' 1,/^$/d' || : ) "
5353[ -n " $DOWNLOADS_WEBPAGE " ] || { echo " Failed to request LimeSurvey downloads webpage: $DOWNLOADS_WEBPAGE_URL " >&2 ; exit 1; }
5454
55- ARCHIVE_URL=" $( _xpath_url " $( sed -e ' s#/[^/]*%s.*$#/#' <<< " $ARCHIVE_URL_TEMPLATE" ) " <<< " $DOWNLOADS_WEBPAGE" ) "
55+ ARCHIVE_URL=" $( _xpath_url " $( sed -e ' s#/[^/]*%s.*$#/#' <<< " $ARCHIVE_URL_TEMPLATE" ) " <<< " $DOWNLOADS_WEBPAGE" || : ) "
5656[ -n " $ARCHIVE_URL " ] || { echo " Malformed LimeSurvey downloads webpage: $DOWNLOADS_WEBPAGE_URL " >&2 ; exit 1; }
5757
5858ARCHIVE_URL_REGEX=" $( printf " $( sed -e ' s/[]\/$*.^[]/\\&/g' <<< " $ARCHIVE_URL_TEMPLATE" ) " " $VERSION_REGEX " ) "
You can’t perform that action at this time.
0 commit comments