HomeFreeBSD

Fix zfs-dkms .deb package warning in prerm script

Description

Fix zfs-dkms .deb package warning in prerm script

Debian zfs-dkms package generated by alien doesn't call the prerm script
(rpm's %preun) with an integer as first parameter, which results in the
following warning when the package is uninstalled:

   "zfs-dkms.prerm: line 3: [: remove: integer expression expected"

Modify the if-condition to avoid the warning.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #9271

Details

Provenance
loli10K <loli10K@users.noreply.github.com>Authored on Sep 3 2019, 10:20 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 3 2019, 10:20 PM
Parents
rGa6a2877774fa: Use the right booleans
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGa49dbbbe06c6: Fix zfs-dkms .deb package warning in prerm script (authored by loli10K <loli10K@users.noreply.github.com>).Sep 3 2019, 10:20 PM