ubuntu-22.04.3-desktop-amd64/casper/filesystem/var/lib/dpkg/info/shared-mime-info.postrm

15 lines
202 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = purge ]; then
MIMEDIR="/usr/share/mime"
if [ -e $MIMEDIR ]; then
cd $MIMEDIR && rm -rf $(ls |grep -v ^packages$)
rmdir --ignore-fail-on-non-empty $MIMEDIR
fi
fi