Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #116 from duskmoon314/compileErrBranch
Browse files Browse the repository at this point in the history
Change PUT method
  • Loading branch information
Sweetnow authored Apr 23, 2020
2 parents 2dafc96 + a0302c6 commit 1c482be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CAPI/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ $? -ne 0 ]
then
# compile fail
cp error.txt /usr/local/mnt/error.txt
curl -X PUT -d "{\"compileInfo\":\"$(cat error.txt | tr \" \' | tr '\n' '#' | tr '\r' '#')\"}" -H 'Content-Type: application/json' -H "Authorization: Bearer ${THUAI_COMPILE_TOKEN}" https://api.eesast.com/v1/codes/${THUAI_CODEID}/compile
curl -X PUT -d '{"compileInfo":"compile error"}' -H 'Content-Type: application/json' -H "Authorization: Bearer ${THUAI_COMPILE_TOKEN}" https://api.eesast.com/v1/codes/${THUAI_CODEID}/compile
else
curl -X PUT -d '{"compileInfo":"compile success"}' -H 'Content-Type: application/json' -H "Authorization: Bearer ${THUAI_COMPILE_TOKEN}" https://api.eesast.com/v1/codes/${THUAI_CODEID}/compile
fi
Expand Down

0 comments on commit 1c482be

Please sign in to comment.