mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-01 17:37:44 +01:00
Update Dockerfile
This commit is contained in:
@@ -103,9 +103,9 @@ RUN \
|
|||||||
RUN \
|
RUN \
|
||||||
cd "$HOME" && \
|
cd "$HOME" && \
|
||||||
git clone https://github.com/alexbelgium/BirdNET-Pi BirdNET-additions && \
|
git clone https://github.com/alexbelgium/BirdNET-Pi BirdNET-additions && \
|
||||||
date1="$(cd BirdNET-Pi && git log -1 --format=%cd)" && \
|
date1="$(cd BirdNET-Pi && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d)" && \
|
||||||
timestamp1=$(date -d "$date1" +%s) && \
|
timestamp1=$(date -d "$date1" +%s) && \
|
||||||
date2=$(cd BirdNET-additions && git log -1 --format=%cd) && \
|
date2=$(cd BirdNET-additions && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d) && \
|
||||||
timestamp2=$(date -d "$date2" +%s) && \
|
timestamp2=$(date -d "$date2" +%s) && \
|
||||||
if [ $timestamp2 -gt $timestamp1 ]; then \
|
if [ $timestamp2 -gt $timestamp1 ]; then \
|
||||||
cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
||||||
|
|||||||
Reference in New Issue
Block a user