mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
fmf: Fix glob
Globs inside quotes aren't expanded and we need the glob to be more specific to avoid matching multiple entries inside the tmt source directory. (cherry picked from commit fc1b08dee2ccf706580fa448e66831d1e853d054)
This commit is contained in:
parent
5761eb9b76
commit
45d45ebfac
@ -23,8 +23,11 @@ setenforce 0 || true
|
||||
# execute:
|
||||
# how: tmt
|
||||
|
||||
shopt -s extglob
|
||||
|
||||
if [[ -n "${TMT_SOURCE_DIR:-}" ]]; then
|
||||
pushd "$TMT_SOURCE_DIR/*/"
|
||||
# Match either directories ending with branch names (e.g. systemd-fmf) or releases (e.g systemd-257.1).
|
||||
pushd "$TMT_SOURCE_DIR"/systemd-+([0-9a-z.~])/
|
||||
elif [[ -n "${PACKIT_TARGET_URL:-}" ]]; then
|
||||
# Prepare systemd source tree
|
||||
git clone "$PACKIT_TARGET_URL" systemd --branch "$PACKIT_TARGET_BRANCH"
|
||||
|
Loading…
x
Reference in New Issue
Block a user