5e2258c6de
* Resolve conflicts * Resolve conflicts * Update gitlab-build.sh (#7855) fix build ```version``` after https://github.com/paritytech/parity/pull/7723 * Resolve conflicts * Update gitlab-test.sh (#7883) * Update gitlab-test.sh https://github.com/paritytech/parity/issues/7871 * Update aura-test.sh * Backport master ci prs * Restore js-build * Bump stable to 1.8.10 * Bump stable to 1.8.10 * Make track stable
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
|
|
|