Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remove condition in debian prerm #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

antonsoroko
Copy link

Current version gives error during remove/purge/upgrade:
/var/lib/dpkg/info/sysinternalsebpf.prerm: 4: [: remove: unexpected operator
this is because of ==, it should be = for [ command, see https://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-11.html

but also $1 should be compared with correct value, like remove/upgrade/etc, see
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html

btw, you can also check some "reference" examples in your debian-based system: cat /var/lib/dpkg/info/*.prerm|less, in case if you will need some more complicated logic for different package actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant