diff options
author | Adam M. Stück <adam@adast.xyz> | 2022-11-23 11:37:28 +0100 |
---|---|---|
committer | Adam M. Stück <adam@adast.xyz> | 2022-12-16 22:17:18 +0100 |
commit | c3dd7c95e17523e77e8558b9cb57176bc8275bea (patch) | |
tree | 8e496dc82dbfe2e07c033f6728dad8a4a6d90d6e /update-binary |
Improved file structure
Diffstat (limited to 'update-binary')
-rwxr-xr-x | update-binary | 9 |
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" |