Commit f98293c9 authored by intrigeri's avatar intrigeri
Browse files

Release process: fix puppet-tails remote computation

refs: #17744

And in passing, fix typo in non-capturing regexp specifier: ":?" → "?:".
parent 25afe29e
......@@ -946,7 +946,7 @@ before starting the wrapper from `puppet-tails`:
set -eu
WORK_DIR=$(mktemp -d)
TAILS_REMOTE="$(git -C "${RELEASE_CHECKOUT?:}" remote get-url origin)"
PUPPET_TAILS_REMOTE=$(echo -n "${TAILS_REMOTE?:}" | perl -p -E 's,:tails(:?[.]git)?\z,:puppet-tails,')
PUPPET_TAILS_REMOTE=$(echo -n "${TAILS_REMOTE?:}" | perl -p -E 's,:tails/tails(?:[.]git)?\z,:tails/puppet-tails,')
cd "${WORK_DIR?:}"
sudo -l
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment