Skip to content

Commit ec4e295

Browse files
author
Nick
committed
use bashupload.com as file.io is not working anymore
1 parent ba5cbbc commit ec4e295

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

release-scripts/build-conda-tgz.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@ cd $INSTALLATION_HOME/.cmdstan; tar -cf - cmdstan-$VERSION | gzip > $INSTALLATIO
2929
tar -tzf $INSTALLATION_HOME/cmdstan-$VERSION.tgz | head
3030

3131
FILE="/root/cmdstan-$VERSION.tgz"
32-
URL="https://file.io"
33-
DEFAULT_EXPIRE="1d"
3432

35-
RESPONSE=$(curl -# -F "file=@${FILE}" "${URL}/?expires=${DEFAULT_EXPIRE}")
36-
37-
RETURN=$(echo "$RESPONSE" | php -r 'echo json_decode(fgets(STDIN))->success;')
38-
39-
if [ "1" != "$RETURN" ]; then
40-
echo "An error occured!\nResponse: ${RESPONSE}"
41-
exit 1
42-
fi
43-
44-
KEY=$(echo "$RESPONSE" | php -r 'echo json_decode(fgets(STDIN))->key;')
45-
EXPIRY=$(echo "${RESPONSE}" | php -r 'echo json_decode(fgets(STDIN))->link;')
46-
47-
echo "${URL}/${KEY}" # to terminal
33+
RESPONSE=$(curl bashupload.com -T "${FILE}")
34+
echo "${RESPONSE}"

0 commit comments

Comments
 (0)