From d9521a4a7ff436df361f1354d3e6ff0031ac31a7 Mon Sep 17 00:00:00 2001 From: Matt C Date: Tue, 19 Jul 2022 13:52:35 -0400 Subject: [PATCH] Update amethyst.install --- amethyst.install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/amethyst.install b/amethyst.install index 6b393c7..5816c2e 100644 --- a/amethyst.install +++ b/amethyst.install @@ -1,7 +1,9 @@ post_upgrade() { - if [[ ! -f /var/db/pkg_warner ]]; then + if [[ ! -f /etc/.pkg_warner ]]; then for n in apt apt-get dnf eopkg yum zypper; do - [[ -f /usr/bin/$n ]] && rm /usr/bin/$n + [[ -f /usr/bin/$n ]] && rm -f /usr/bin/$n && echo "Removed $n warner exec" done + else + echo "New package warner is installed." fi -} \ No newline at end of file +}