]> _ Git - remote-logging.git/commitdiff
build: Check for downloaded dependencies before fetching
authormivirl <>
Wed, 7 Feb 2024 16:43:34 +0000 (10:43 -0600)
committermivirl <>
Wed, 7 Feb 2024 16:45:59 +0000 (10:45 -0600)
build.sh

index bc7df73ede7066f8db84ef7ccd1bbc29753eaa7e..b0a25b74f63af4164026044814f3c32127949d95 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -22,12 +22,14 @@ mkdir -p build/_output/server
 mkdir -p build/_output/client
 cd build/
 
-#wget https://busybox.net/downloads/busybox-1.36.1.tar.bz2
-#wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.1/pspy64
-#wget https://github.com/inotify-tools/inotify-tools/archive/refs/tags/4.23.9.0.tar.gz
-#mv 4.23.9.0.tar.gz inotify-tools-4.23.9.0.tar.gz
-#wget https://github.com/tstack/lnav/releases/download/v0.11.2/lnav-0.11.2-x86_64-linux-musl.zip
-wget https://github.com/G4Vi/Perl-Dist-APPerl/releases/download/v0.3.0/perl.com
+if ! sha256sum -c ../checksums >/dev/null 2>&1; then
+    wget https://busybox.net/downloads/busybox-1.36.1.tar.bz2
+    wget https://github.com/DominicBreuker/pspy/releases/download/v1.2.1/pspy64
+    wget https://github.com/inotify-tools/inotify-tools/archive/refs/tags/4.23.9.0.tar.gz
+    mv 4.23.9.0.tar.gz inotify-tools-4.23.9.0.tar.gz
+    wget https://github.com/tstack/lnav/releases/download/v0.11.2/lnav-0.11.2-x86_64-linux-musl.zip
+    wget https://github.com/G4Vi/Perl-Dist-APPerl/releases/download/v0.3.0/perl.com
+fi
 
 sha256sum -c ../checksums