escape backslash in jenkinsfile

This commit is contained in:
aptalca 2022-07-06 09:44:47 -04:00
parent 362ea857c8
commit d9ff67c3a6

View File

@ -146,7 +146,7 @@ pipeline {
if [ -f "${so}" ]; then
echo "Uploading $(basename ${so})"
docker exec s3cmd s3cmd put --acl-public "/build-${os}/$(basename ${so})" "s3://wheels.linuxserver.io/${os}/$(basename ${so})"
export GENERICTARNAME=$(basename ${so} | sed 's|-[0-9\.]*||')
export GENERICTARNAME=$(basename ${so} | sed 's|-[0-9\\.]*||')
if grep -q "${GENERICTARNAME}" "${TEMPDIR}/wheelie/docs/ubuntu/index.html"; then
sed -i "s|'.*'>${GENERICTARNAME}</a>|'https://wheels.linuxserver.io/ubuntu/$(basename ${so})'>${GENERICTARNAME}</a>|" "${TEMPDIR}/wheelie/docs/ubuntu/index.html"
else