From 003780f587c8ee33a9739140883b4af287aa247d Mon Sep 17 00:00:00 2001 From: Egor00f Date: Sat, 9 Nov 2024 13:46:44 +0000 Subject: [PATCH] try fix postrm --- package/DEBIAN/postrm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/DEBIAN/postrm b/package/DEBIAN/postrm index 93488b4..8fc5251 100755 --- a/package/DEBIAN/postrm +++ b/package/DEBIAN/postrm @@ -3,5 +3,9 @@ rm -R /home/autobuild/tools/win32 if grep -q 'PATH=$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then - sed -i '/PATH=$PATH:/home/autobuild/tools/win32/bin/d' /etc/profile + val="PATH=\$PATH:/home/autobuild/tools/win32/bin" + sed -i '/$val/d' package/DEBIAN/control fi + + +