build.sh: only clone AcpiTables when not exists
authorBigfootACA <bigfoot@classfun.cn>
星期六, 4 Sep 2021 15:55:24 +0000 (23:55 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期六, 4 Sep 2021 15:55:24 +0000 (23:55 +0800)
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
build.sh

index 7e7876ad7740fdbfa8b176c67d79f6e2bab38b89..2d6271f44b170a02d6d1d7c420d3e18fb4202091 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -113,7 +113,7 @@ if "${CLEAN}";then _clean;exit "$?";fi
 if ! [ -f edk2/edksetup.sh ] || ! [ -f ../edk2/edksetup.sh ]
 then   set -e
        echo "Updating submodules"
-       git clone https://git.renegade-project.org/edk2-sdm845-acpi.git sdm845Pkg/AcpiTables
+       [ -e sdm845Pkg/AcpiTables/.git ]||git clone https://git.renegade-project.org/edk2-sdm845-acpi.git sdm845Pkg/AcpiTables
        if "${CHINESE}"
        then    git submodule set-url edk2 https://hub.fastgit.org/tianocore/edk2.git
                git submodule set-url edk2-platforms https://hub.fastgit.org/tianocore/edk2-platforms.git