File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,19 +29,6 @@ cd $INSTALLATION_HOME/.cmdstan; tar -cf - cmdstan-$VERSION | gzip > $INSTALLATIO
2929tar -tzf $INSTALLATION_HOME /cmdstan-$VERSION .tgz | head
3030
3131FILE=" /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} "
You can’t perform that action at this time.
0 commit comments