summaryrefslogtreecommitdiff
path: root/update-binary
diff options
context:
space:
mode:
Diffstat (limited to 'update-binary')
-rwxr-xr-xupdate-binary9
1 files changed, 9 insertions, 0 deletions
diff --git a/update-binary b/update-binary
new file mode 100755
index 0000000..9713994
--- /dev/null
+++ b/update-binary
@@ -0,0 +1,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"