fix: _brightness.sh - find brighness files with '*video*' path (multiple files)
[cmdllinux.git] / buildroot / _pkg / _instpkg / develmanage / __pkgremove.sh
blob20f31f469f18ccb684ea05a61a4746a6c3b78ef2
1 #! /bin/bash
3 if PKGNAME=`pacman -Q eject 2> /dev/null`; then
4 DIR=`echo "$PKGNAME" | tr ' ' -`
5 test -d /var/lib/pacman/local/$DIR || exit 1
6 cat /var/lib/pacman/local/$DIR/files | \
7 while read file; do
8 case "$file" in
9 %FILES%|"") continue;;
11 [ "$file" = "*/" ] && rmdir "/$file" > /dev/null 2>&1 || rm "/$file" > /dev/null 2>&1
12 rm -rf /var/lib/pacman/local/$DIR
14 esac
15 done
17 #pacman -Rdd --noconfirm --noprogressbar eject > /dev/null 2>&1