Use --timestamping to avoid re-downloading.

When a newer version of the file appears, wget will automatically
update the file on disk.
This commit is contained in:
Maciej Bliziński 2024-07-22 16:53:14 +01:00
parent acbb385516
commit 44374bb3a6
No known key found for this signature in database
GPG Key ID: B1234ED6A2A7401B

View File

@ -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