mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10862 from ethereum/fix-wrong-script-path-in-check-style-sh
Fix check_style.sh refactor
This commit is contained in:
commit
d753c1a047
@ -27,7 +27,7 @@ if [[ "$WHITESPACE" != "" ]]
|
||||
then
|
||||
echo "Error: Trailing whitespace found:" | tee -a "$ERROR_LOG"
|
||||
echo "$WHITESPACE" | tee -a "$ERROR_LOG"
|
||||
scripts/post_style_errors_on_github.sh "$ERROR_LOG"
|
||||
scripts/ci/post_style_errors_on_github.sh "$ERROR_LOG"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -56,7 +56,7 @@ if [[ "$FORMATERROR" != "" ]]
|
||||
then
|
||||
echo "Coding style error:" | tee -a "$ERROR_LOG"
|
||||
echo "$FORMATERROR" | tee -a "$ERROR_LOG"
|
||||
scripts/post_style_errors_on_github.sh "$ERROR_LOG"
|
||||
scripts/ci/post_style_errors_on_github.sh "$ERROR_LOG"
|
||||
exit 1
|
||||
fi
|
||||
)
|
||||
|
@ -4,10 +4,7 @@ ERROR_LOG="$1"
|
||||
|
||||
function report_error_to_github
|
||||
{
|
||||
if [[ $CIRCLE_PR_NUMBER != "" ]]
|
||||
then
|
||||
CIRCLE_PR_NUMBER="${CIRCLE_PULL_REQUEST//[^0-9]/}"
|
||||
fi
|
||||
[[ $CIRCLE_PR_NUMBER != "" ]] || CIRCLE_PR_NUMBER="${CIRCLE_PULL_REQUEST//[^0-9]/}"
|
||||
|
||||
if [[ $CI == "true" ]]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user