From: mivirl <> Date: Wed, 7 Feb 2024 16:43:34 +0000 (-0600) Subject: build: Check for downloaded dependencies before fetching X-Git-Url: http://mivirl.dev/git/?a=commitdiff_plain;h=b67e63b39f98ee33528c447d048b679ace69aa70;p=remote-logging.git build: Check for downloaded dependencies before fetching --- diff --git a/build.sh b/build.sh index bc7df73..b0a25b7 100644 --- 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