summaryrefslogtreecommitdiff
path: root/update-binary
blob: 971399431c43a73185a65e49b37600bc3c90daf4 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

PREFIX=$(dirname "$0")
CLOUD_AUTH=$(<"$PREFIX/cloud-auth")
BIN_PATH="https://cloud.adast.xyz/public.php/webdav/uploads"
BIN_NAME="verifypn-linux64"

curl -u "$CLOUD_AUTH" -s "$BIN_PATH/$BIN_NAME" --output "$PREFIX/$BIN_NAME"
chmod +x "$PREFIX/$BIN_NAME"