summaryrefslogtreecommitdiff
path: root/debian/apt.auto-removal.sh
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-03-10 21:31:35 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-03-13 13:58:46 +0100
commit7ce1ac857d914f98069078b1ea70995e7b6cf764 (patch)
tree7c714e38f4fb7d29425f38556d5105f58f47644b /debian/apt.auto-removal.sh
parentdae27c67f2219d9387274660529113cdb81a15c3 (diff)
ensure that a dot is a dot in the hook
As we deal with regex matchers here the dots are treated as wildcards if we don't take care of escaping them. Not very likely that this could be a real-world problem, but just to be sure.
Diffstat (limited to 'debian/apt.auto-removal.sh')
-rw-r--r--debian/apt.auto-removal.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh
index ab8201898..0c5158658 100644
--- a/debian/apt.auto-removal.sh
+++ b/debian/apt.auto-removal.sh
@@ -63,13 +63,10 @@ then
previous_version=
fi
-kernels=$(sort -u <<EOF
-$latest_version
+kernels="$(echo "$latest_version
$installed_version
$running_version
-$previous_version
-EOF
-)
+$previous_version" | sort -u | sed -e 's#\.#\\.#g' )"
generateconfig() {
cat <<EOF