summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-06 17:40:04 +0000
committerintrigeri <intrigeri@boum.org>2016-05-06 17:40:04 +0000
commit6de38a6c61ea30dd854be78980523f61dd5737d3 (patch)
treed92157bd67eb5f358c404dcbcd0f9f326a15d84e
parentb9d38b62759d6a74d0bda4d84571eee92fe14610 (diff)
chomp each reference.
-rwxr-xr-xfiles/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots1
1 files changed, 1 insertions, 0 deletions
diff --git a/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots b/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
index 4d88a70..c01c3d1 100755
--- a/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
+++ b/files/reprepro/snapshots/time_based/tails-delete-expired-apt-snapshots
@@ -73,6 +73,7 @@ verbose_print("found snapshots directories: @snapshots_dirs\n");
# (use a shell pipeline to avoid loading the entire output of
# dumpreferences into memory; we've seen it take no less than 7.5 GiB):
my @reprepro_references =
+ map { chomp }
`reprepro -b '$archive_dir' dumpreferences \\
| awk '/^s=/ {print \$1}' \\
| sort -u`;