From 6abf506f18dc5a88891cd98f546869f6364c8376 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 28 Dec 2022 18:51:49 -0800 Subject: [PATCH] Error fetch lcg scripts on failure --- fetch-libcwtch-go-macos.sh | 4 ++-- fetch-libcwtch-go.ps1 | 1 + fetch-libcwtch-go.sh | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fetch-libcwtch-go-macos.sh b/fetch-libcwtch-go-macos.sh index 7f198f27..8f1a60f2 100755 --- a/fetch-libcwtch-go-macos.sh +++ b/fetch-libcwtch-go-macos.sh @@ -3,6 +3,6 @@ VERSION=`cat LIBCWTCH-GO-MACOS.version` echo $VERSION -curl https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.x64.dylib --output libCwtch.x64.dylib -curl https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.arm64.dylib --output libCwtch.arm64.dylib +curl --fail https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.x64.dylib --output libCwtch.x64.dylib +curl --fail https://build.openprivacy.ca/files/libCwtch-go-macos-$VERSION/libCwtch.arm64.dylib --output libCwtch.arm64.dylib diff --git a/fetch-libcwtch-go.ps1 b/fetch-libcwtch-go.ps1 index d2d3dfcf..78740d7a 100644 --- a/fetch-libcwtch-go.ps1 +++ b/fetch-libcwtch-go.ps1 @@ -1,6 +1,7 @@ $Env:VERSION = type LIBCWTCH-GO.version echo $Env:VERSION +# This should automatically fail on error... Invoke-WebRequest -Uri https://build.openprivacy.ca/files/libCwtch-go-$Env:VERSION/libCwtch.dll -OutFile windows/libCwtch.dll #Invoke-WebRequest -Uri https://build.openprivacy.ca/files/libCwtch-go-$Env:VERSION/cwtch.aar -OutFile android/cwtch/cwtch.aar diff --git a/fetch-libcwtch-go.sh b/fetch-libcwtch-go.sh index fe331d0b..b515010d 100755 --- a/fetch-libcwtch-go.sh +++ b/fetch-libcwtch-go.sh @@ -3,5 +3,5 @@ VERSION=`cat LIBCWTCH-GO.version` echo $VERSION -wget https://build.openprivacy.ca/files/libCwtch-go-$VERSION/cwtch.aar -O android/cwtch/cwtch.aar -wget https://build.openprivacy.ca/files/libCwtch-go-$VERSION/libCwtch.so -O linux/libCwtch.so +curl --fail https://build.openprivacy.ca/files/libCwtch-go-$VERSION/cwtch.aar --output android/cwtch/cwtch.aar +curl --fail https://build.openprivacy.ca/files/libCwtch-go-$VERSION/libCwtch.so --output linux/libCwtch.so \ No newline at end of file