5584739b83
* Re-enable auto-update for windows. Fail build on non 2xx response from updater. * Fix format of md5 and sha256 files. * Fix identation. * Add critical to metadata. * Add some logs. * Fix pushing build. * Attempt to fix release pushing. * Fix missing rhash? * Workaround broken rhash.
21 lines
347 B
Bash
Executable File
21 lines
347 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
DATA=$1
|
|
ADDRESS=$2
|
|
|
|
CODE=$(curl -o out.txt -w '%{http_code}' --data $DATA $ADDRESS)
|
|
cat out.txt && rm out.txt
|
|
echo "\n"
|
|
|
|
if [[ $CODE -eq 200 ]]; then
|
|
echo 'Pushed to updater service.';
|
|
elif [[ $CODE -eq 202 ]]; then
|
|
echo 'Updater service ignored request.';
|
|
else
|
|
echo 'Unable to push info to updater service.';
|
|
exit 2
|
|
fi
|
|
|