ubuntu-22.04.3-desktop-amd64/casper/filesystem/var/lib/dpkg/info/branding-ubuntu.preinst

21 lines
357 B
Bash
Executable File

#!/bin/sh
set -e
files="
aisleriot/pixmaps/slot.svg
aisleriot/pixmaps/baize.png
aisleriot/cards/bonded.svg
gnome-mahjongg/themes/postmodern.svg
"
if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
for item in $files
do
dpkg-divert --package branding-ubuntu --add --rename \
--divert "/usr/share/$item"".unbranded" "/usr/share/$item"
done
fi