From 49ac59180f143ec2251e1f3914a4d8b65c217ebe Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Sun, 12 Nov 2023 18:04:16 +0000 Subject: [PATCH] efibuild: Add call and file --- efibuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/efibuild.sh b/efibuild.sh index 001ce6d..581cd03 100755 --- a/efibuild.sh +++ b/efibuild.sh @@ -53,13 +53,16 @@ updaterepo() { exit 1 fi fi - if [ "$2" = "UDK" ] && [ "$DISCARD_SUBMODULES" != "" ]; then + if [ "$2" = "UDK" ] && [ "$DISCARD_SUBMODULES" != "" ] && [ ! -f submodules.ready ]; then setcommitauthor for module_to_discard in "${DISCARD_SUBMODULES[@]}" ; do + git submodule deinit "${module_to_discard}" git rm "${module_to_discard}" done git commit -m "Discarded submodules" + touch submodules.ready fi + exit git submodule update --init --recommend-shallow || exit 1 popd >/dev/null || exit 1 }