shallow git clone to save space and time
This commit is contained in:
@@ -108,7 +108,7 @@ stage_2() {
|
|||||||
if [ ! -d ${my_dir} ];then
|
if [ ! -d ${my_dir} ];then
|
||||||
cd ~ || exit 1
|
cd ~ || exit 1
|
||||||
echo "Cloning the BirdNET-Pi repository $branch branch into your home directory"
|
echo "Cloning the BirdNET-Pi repository $branch branch into your home directory"
|
||||||
git clone -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ~/BirdNET-Pi
|
git clone --depth 1 -b ${branch} https://github.com/mcguirepr89/BirdNET-Pi.git ~/BirdNET-Pi
|
||||||
else
|
else
|
||||||
cd ${my_dir} && git checkout ${branch}
|
cd ${my_dir} && git checkout ${branch}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user