From 538e37ceb707fd370d12fbb8012c8987a5a80252 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 27 Jan 2025 04:29:07 -0800 Subject: [PATCH] Add --recurse-submodules to git clone operation --- installers/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index bd78ef00..3c7f034e 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -583,14 +583,14 @@ function _download_latest_files() { if [ "$repo" == "RaspAP/raspap-insiders" ]; then if [ -n "$username" ] && [ -n "$acctoken" ]; then insiders_source_url="https://${username}:${acctoken}@github.com/$repo" - git clone --branch $branch --depth 1 -c advice.detachedHead=false $insiders_source_url $source_dir || clone=false + git clone --branch $branch --depth 1 --recurse-submodules -c advice.detachedHead=false $insiders_source_url $source_dir || clone=false else _install_status 3 echo "Insiders please read this: https://docs.raspap.com/insiders/#authentication" fi fi if [ -z "$insiders_source_url" ]; then - git clone --branch $branch --depth 1 -c advice.detachedHead=false $git_source_url $source_dir || clone=false + git clone --branch $branch --depth 1 --recurse-submodules -c advice.detachedHead=false $git_source_url $source_dir || clone=false fi if [ "$clone" = false ]; then _install_status 1 "Unable to download files from GitHub"