From 5ea89a4acf9a568824ddf6e3ea7de2574f668153 Mon Sep 17 00:00:00 2001 From: Matt C Date: Tue, 19 Jul 2022 15:20:57 -0400 Subject: [PATCH] make sure to remove links on pkg uninstall (thanks @ihatethefrench( --- warner.install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/warner.install b/warner.install index ce04ffd..9fed81c 100644 --- a/warner.install +++ b/warner.install @@ -7,4 +7,11 @@ post_install() { post_upgrade() { post_install +} + +post_remove() { + for x in apt apt-get zypper dnf eopkg apk; do + rm -f /usr/bin/$x + echo "removed the link to $x" + done } \ No newline at end of file