]> git.proxmox.com Git - mirror_zfs.git/commit
Fix zfs-dkms .deb package warning in prerm script
authorloli10K <loli10K@users.noreply.github.com>
Tue, 3 Sep 2019 22:20:39 +0000 (00:20 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Sep 2019 22:20:39 +0000 (15:20 -0700)
commita49dbbbe06c6c0d0c401530c756c0c056d49fbb7
tree3a272d13495044711c9b2115d9ef7739a2440bf9
parenta6a2877774faa5abfc0491e66c8361da759d22fd
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
rpm/generic/zfs-dkms.spec.in