Skip to content

Commit 2047991

Browse files
Saifeldin Hesham Taha Husseintwangboy
authored andcommitted
fix resolve local path dynamically from base_url
1 parent e30786e commit 2047991

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

linux/svtminion.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,9 +997,13 @@ _fetch_salt_minion() {
997997
wget -r -np -nH --exclude-directories=windows,relenv,macos -x -l 1 "${base_url}/"
998998
cd ${curr_pwd} || return 1
999999

1000+
url_path=$(printf '%s\n' "$base_url" | sed -E 's|https?://[^/]+/?||')
1001+
url_path=${url_path%/}
1002+
local_path="${generic_versions_tmpdir}/${url_path}"
1003+
10001004
# get desired specific version of Salt
10011005
if ! _get_desired_salt_version_fn \
1002-
"${generic_versions_tmpdir}/artifactory/saltproject-generic/onedir"
1006+
"${local_path}"
10031007
then
10041008
rm -fR "${generic_versions_tmpdir}"
10051009
return 1

0 commit comments

Comments
 (0)