From 5557ee82e43ed551e9dd1a7e9b0665309d49b716 Mon Sep 17 00:00:00 2001 From: LAbyOne <63520775+LAbyOne@users.noreply.github.com> Date: Sun, 31 Oct 2021 17:29:07 +0100 Subject: [PATCH] removed obsolete files from build --- .../package/Scripts.templates/EFIFolder/preinstall | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CloverPackage/package/Scripts.templates/EFIFolder/preinstall b/CloverPackage/package/Scripts.templates/EFIFolder/preinstall index 68a858bd2..ee2cbefce 100755 --- a/CloverPackage/package/Scripts.templates/EFIFolder/preinstall +++ b/CloverPackage/package/Scripts.templates/EFIFolder/preinstall @@ -155,13 +155,13 @@ fi find "$backupRootDir" -type d -maxdepth 2 -empty -print0 2>/dev/null | xargs -0 rmdir find "$backupRootDir" -type d -maxdepth 1 -empty -print0 2>/dev/null | xargs -0 rmdir -# Remove old CloverPrefpane -pkg='@CLOVER_PACKAGE_IDENTITY@.cloverprefpane' -location=$(/usr/sbin/pkgutil --volume "$DEST_VOL" --pkg-info $pkg 2>/dev/null | sed -n 's/^location: *//p') -pkgutil --volume "$DEST_VOL" --files $pkg 2>/dev/null | \ - xargs -I @@ echo "$DEST_VOL/$location/@@" | \ - /usr/bin/grep -iE 'CloverUpdater|Clover.prefPane' | \ - xargs -I @@ rm -rf '@@' +# # Remove old CloverPrefpane +# pkg='@CLOVER_PACKAGE_IDENTITY@.cloverprefpane' +# location=$(/usr/sbin/pkgutil --volume "$DEST_VOL" --pkg-info $pkg 2>/dev/null | sed -n 's/^location: *//p') +# pkgutil --volume "$DEST_VOL" --files $pkg 2>/dev/null | \ +# xargs -I @@ echo "$DEST_VOL/$location/@@" | \ +# /usr/bin/grep -iE 'CloverUpdater|Clover.prefPane' | \ +# xargs -I @@ rm -rf '@@' # Remove files of old revision. pkgs=$(/usr/sbin/pkgutil --volume "$DEST_VOL" --pkgs | /usr/bin/grep -iE '@CLOVER_PACKAGE_IDENTITY@.' | /usr/bin/grep -Ev 'ntfs|apfs|hfsplus')