index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-10-20 16:53:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-10-20 16:53:28 +0200 |
commit | 17bd4887275d28a63e514ad0f6ff5d4f66e598fe (patch) | |
tree | 5b76e526159bed5e22ef7ee980df07631b2d7613 /lib/common-functions | |
parent | 6541883a54297ab403e5b28eb896a366a7decd19 (diff) |
-rwxr-xr-x | lib/common-functions | 6 |
diff --git a/lib/common-functions b/lib/common-functions index 110578f..b64af00 100755 --- a/lib/common-functions +++ b/lib/common-functions @@ -871,6 +871,12 @@ failsafe_sftp() { trial_counter=20 trap 'rm -rf --one-file-system "${temp_dir}"' EXIT cat > "${temp_dir}/input" + if [ -n "${master_mirror_sftp_root}" ]; then + sed -i ' + /^\(rm\|rename\) / s@"\([^"]\+\)"@"'"${master_mirror_sftp_root}"'/\1"@g + /^ln / s@"\([^"]\+\)"$@"'"${master_mirror_sftp_root}"'/\1"@ + ' "${temp_dir}/input" + fi sed -n ' s/^rm "\([^"]\+\)"$/- \1/ s/^ln\( [^"]\S*\)* "[^"]\+" "\([^"]\+\)"$/+ \2/ |