Skip to content

Commit

Permalink
efibuild: Add call and file
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Nov 12, 2023
1 parent 3bc0665 commit 49ac591
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion efibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 49ac591

Please sign in to comment.