From 44374bb3a6df11b7fd13a6f8418cfb57f586dbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Blizi=C5=84ski?= Date: Mon, 22 Jul 2024 16:53:14 +0100 Subject: [PATCH] Use `--timestamping` to avoid re-downloading. When a newer version of the file appears, wget will automatically update the file on disk. --- build.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.sh b/build.sh index c4535c2..c090090 100755 --- a/build.sh +++ b/build.sh @@ -26,11 +26,8 @@ fi cd .. cd webui -if [ -f webui.tar.gz ]; then - rm -f webui.tar.gz -fi echo "Downloading current webui release ..." -wget https://github.com/bondagit/aes67-linux-daemon/releases/latest/download/webui.tar.gz +wget --timestamping https://github.com/bondagit/aes67-linux-daemon/releases/latest/download/webui.tar.gz if [ -f webui.tar.gz ]; then tar -xzvf webui.tar.gz else