From 5c5b3d0e6ef8a0c6a5698850b46386dbe713246a Mon Sep 17 00:00:00 2001 From: Geapefurit <670884108@qq.com> Date: Thu, 9 Nov 2023 11:57:38 +0800 Subject: [PATCH] check sudo for eslint --- hack/es-verify-eslint.sh | 2 +- hack/verify.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/es-verify-eslint.sh b/hack/es-verify-eslint.sh index bdd90264..1579500a 100755 --- a/hack/es-verify-eslint.sh +++ b/hack/es-verify-eslint.sh @@ -33,7 +33,7 @@ if ! command -v yarn; then $SUDO npm install -g yarn -y fi -# $SUDO n v16.14.0 +$SUDO n v16.14.0 npm install @typescript-eslint/eslint-plugin --save-dev yarn lint diff --git a/hack/verify.sh b/hack/verify.sh index e708b9a7..2f6c3b60 100755 --- a/hack/verify.sh +++ b/hack/verify.sh @@ -74,7 +74,7 @@ function run-checks { echo -e "Verifying ${check_name}" start=$(date +%s) - run-cmd "${runner}" "${t}" && tr=$? || tr=$? + run-cmd "${runner}" "-x ${t}" && tr=$? || tr=$? local elapsed=$(($(date +%s) - start)) if [[ ${tr} -eq 0 ]]; then