Revert "Fix desktop-base maintainer scripts"

This reverts commit 380c35c31d.
This commit is contained in:
Daniel Ruiz de Alegría
2020-03-24 16:30:29 +01:00
parent 380c35c31d
commit 69f985d14d
3 changed files with 4 additions and 25 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
update_script() {
local script=$1
(
sed -n -e '1,/^FILES_TO_DIVERT="/ p' $script
cat files-to-divert
sed -n -e '/^" # END FILES_TO_DIVERT/,$ p' $script
) > $script.new
mv $script.new $script
}
update_script debian/kali-themes.preinst
update_script debian/kali-themes.postinst
update_script debian/kali-themes.postrm