Skip to content

Conversation

@antonsoroko
Copy link

@antonsoroko antonsoroko commented Jan 9, 2025

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

this was silently fixed in #62

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.

@antonsoroko
Copy link
Author

first part of issue was silently fixed in #62 (which is confusing, since this PR was before that PR).
but second part still stands.

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