File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ latest_version=$(
3131 (
3232 curl --silent --fail --show-error --location \
3333 --url " https://artfiles.org/openssl.org/source/old/${directory} /" \
34- | sed -ne ' s/^.*href="openssl-\ ([0-9.]\{1,\} [a-z]\ {0,2\}\ )\.tar\.gz">.*/\1/p'
34+ | sed -nEe ' s/^.*href="openssl-([0-9.]+ [a-z]{0,2} )\.tar\.gz">.*/\1/p'
3535 curl --silent --fail --show-error --location \
3636 --url " https://artfiles.org/openssl.org/source/" \
37- | sed -ne ' s/^.*href="openssl-\ ([0-9.]\{1,\} [a-z]\ {0,2\}\ )\.tar\.gz">.*/\1/p'
37+ | sed -nEe ' s/^.*href="openssl-([0-9.]+ [a-z]{0,2} )\.tar\.gz">.*/\1/p'
3838 ) \
3939 | grep --color=" never" -F " ${source_family} " \
4040 | sort --version-sort \
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ tarball_url=$(
3636 (
3737 curl --silent --fail --show-error --location \
3838 --url " https://artfiles.org/openssl.org/source/old/${directory} /" \
39- | sed -ne ' s|^.*href="\ (openssl-' " ${version} " ' \.tar\.gz\ )">.*|https://www.openssl.org/source/old/' " ${directory} " ' /\1|p'
39+ | sed -nEe ' s|^.*href="(openssl-' " ${version} " ' \.tar\.gz)">.*|https://www.openssl.org/source/old/' " ${directory} " ' /\1|p'
4040 curl --silent --fail --show-error --location \
4141 --url " https://artfiles.org/openssl.org/source/" \
42- | sed -ne ' s|^.*href="\ (openssl-' " ${version} " ' \.tar\.gz\ )">.*|https://www.openssl.org/source/\1|p'
42+ | sed -nEe ' s|^.*href="(openssl-' " ${version} " ' \.tar\.gz)">.*|https://www.openssl.org/source/\1|p'
4343 ) | tail --lines=" 1"
4444)
4545if [[ -z ${tarball_url} ]]; then
You can’t perform that action at this time.
0 commit comments