From 275b61d2a30851aceb4cabd1b7d58e603e1721b0 Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Sun, 23 Apr 2023 10:12:02 +0100 Subject: [PATCH] Add DISCARD_PACKAGES --- efibuild.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/efibuild.sh b/efibuild.sh index 040a297..678842f 100755 --- a/efibuild.sh +++ b/efibuild.sh @@ -354,6 +354,14 @@ fi cd UDK || exit 1 HASH=$(git rev-parse '@{upstream}') +if [ "$DISCARD_PACKAGES" != "" ]; then + for package_to_discard in "${DISCARD_PACKAGES[@]}" ; do + if [ -d "${package_to_discard}" ]; then + rm -rf "${package_to_discard}" + fi + done +fi + if [ "$NEW_BUILDSYSTEM" != "1" ]; then if [ -d ../Patches ]; then if [ ! -f patches.ready ]; then