summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-30 22:25:25 +0200
committerErich Eckner <git@eckner.net>2017-08-30 22:25:25 +0200
commit71e420d29b063dec02fd1c8a85fd5237ba3cefb2 (patch)
tree978ae02a9cd192e20b2479b960ef5da410bba720
parent865fad28cc0d05ab74a8bf1ef8fa2846d0b50472 (diff)
downloadbuilder-71e420d29b063dec02fd1c8a85fd5237ba3cefb2.tar.xz
bin/common-functions: remove_old_package_versions: quote packages
-rwxr-xr-xbin/common-functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 99e1fc7..b1fb9f0 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -500,9 +500,10 @@ remove_old_package_versions() {
sed '
s| \(\S\+\)$|-\1|
y| |/|
- s|^|rm |
+ s|^|rm "|
+ s|$|"|
p
- s|$|.sig|
+ s|"$|.sig"|
' "${tmp_dir}/packages-to-delete" | \
${master_mirror_sftp_command}
)