mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 02:41:58 -05:00
cd37f23ce7
Regression from ee09ffadf7
21 lines
542 B
Bash
Executable file
21 lines
542 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
if [[ "$#" -ne 1 ]]; then
|
|
echo 'Upload OpenRCT2 debug symbols to https://backtrace.io.'
|
|
echo ''
|
|
echo 'Usage: upload-backtrace-symbols <path>'
|
|
echo ''
|
|
echo 'Environment variable ''BACKTRACE_IO_TOKEN'' must be set.'
|
|
exit 1
|
|
fi
|
|
|
|
path=$1
|
|
|
|
if [ "$BACKTRACE_IO_TOKEN" == "" ]; then
|
|
echo -e "\033[0;31mBACKTRACE_IO_TOKEN not set"
|
|
exit 1
|
|
fi
|
|
|
|
curl -m 300 --connect-timeout 5 -o - \
|
|
--data-binary "@$path" \
|
|
"https://openrct2.sp.backtrace.io:6098/post?format=symbols&token=$BACKTRACE_IO_TOKEN"
|