zsh: fix invalid postrm script and little refactor of scripts
authorKarel Kočí <karel.koci@nic.cz>
Wed, 18 Dec 2019 08:57:23 +0000 (09:57 +0100)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 17 Dec 2021 22:48:16 +0000 (23:48 +0100)
commitea3e54accd119326794f0c27e4d730895047d38f
tree0ab7dc84f65d5d6f6dc3bd78e6eeaa2bfd488c1c
parent5a9b5ee78cd2af226bde5937044408d307f32081
zsh: fix invalid postrm script and little refactor of scripts

The postrm script was missing shebang. Postrm scripts are packaged and
executed directly and not sourced by default script (as in case of prerm
and postinst).

Also move some indents around to not confuse reader. The section in
postinst was indented to same level as grep "condition" but is on same
level as initial grep (not part of that "condition").

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
(cherry picked from commit d2d193d81885cd2351e3bd53f6f4cc8ec092e26d)
utils/zsh/Makefile