From 7edd29f7398d7374a578fb06d8432d95669147ef Mon Sep 17 00:00:00 2001 From: Adam Leskis Date: Thu, 1 Sep 2022 19:55:34 +0100 Subject: [PATCH] Clone shallow on installation Just clone a single commit, which will be faster and save space/bandwidth. --- newinstaller.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newinstaller.sh b/newinstaller.sh index cb202ca..4dab014 100755 --- a/newinstaller.sh +++ b/newinstaller.sh @@ -24,7 +24,7 @@ if [[ ! -z $PACKAGES_MISSING ]] ; then fi branch=main -git clone -b $branch https://github.com/mcguirepr89/BirdNET-Pi.git ${HOME}/BirdNET-Pi && +git clone -b $branch --depth=1 https://github.com/mcguirepr89/BirdNET-Pi.git ${HOME}/BirdNET-Pi && $HOME/BirdNET-Pi/scripts/install_birdnet.sh if [ ${PIPESTATUS[0]} -eq 0 ];then