This commit is contained in:
Alexandre
2025-03-04 22:41:09 +01:00
committed by GitHub
parent 9540139867
commit 8aad502fc6

View File

@@ -110,34 +110,6 @@ RUN \
apt-get clean all && \
rm -rf /var/lib/apt/lists/*
# Add PR
#RUN \
# cd /home/pi/BirdNET-Pi && \
# git fetch origin pull/158/head:158 && \
# git checkout main && \
# git branch -D f-merge-prs || true && \
# git checkout -b f-merge-prs && \
# git merge 158 --no-edit && \
# git stash && \
# git checkout main && \
# git merge f-merge-prs && \
# git branch -d f-merge-prs && \
# git branch -d 158
# Update with my repo if more recent
#WORKDIR /home/pi
#RUN \
# git clone https://github.com/alexbelgium/BirdNET-Pi BirdNET-additions && \
# date1="$(cd BirdNET-Pi && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d)" && \
# timestamp1=$(date -d "$date1" +%s) && \
# date2=$(cd BirdNET-additions && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d) && \
# timestamp2=$(date -d "$date2" +%s) && \
# if [ $timestamp2 -gt $timestamp1 ]; then \
# cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
# rm -r BirdNET-additions && \
# sed -i "/find /d" BirdNET-Pi/scripts/update_birdnet_snippets.sh && \
# ./BirdNET-Pi/scripts/update_birdnet_snippets.sh; fi
##################
# 2 Modify Image #
##################