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 + + +