ubuntu-22.04.3-desktop-amd64/casper/filesystem/var/lib/dpkg/info/gnome-mahjongg.postinst

14 lines
300 B
Bash
Executable File

#! /bin/sh
set -e
# Clean up old scores files. They are no longer stored system wide
# but in the user's home directory.
if dpkg --compare-versions "$2" lt-nl "1:3.20.0-2" ; then
rm -f /var/games/mahjongg.*.scores
if [ -d /var/games ] ; then
rmdir --ignore-fail-on-non-empty /var/games
fi
fi