summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index b1db35e010..c3d06883fb 100755
--- a/build.sh
+++ b/build.sh
@@ -144,11 +144,12 @@ process.stdin.on('end', function () {
JSONRPC_CODE
set -e
-curl -X POST \
+JSONRPC_RESPONSE="$(curl -X POST \
+ --fail \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": "0", "method": "relay_list"}' \
- https://api.mullvad.net/rpc/ | \
-node -e "$JSONRPC_CODE" > dist-assets/relays.json
+ https://api.mullvad.net/rpc/)"
+echo $JSONRPC_RESPONSE | node -e "$JSONRPC_CODE" > dist-assets/relays.json
echo "Installing JavaScript dependencies..."
cd gui