Commit 15912abe authored by Yann Hodique's avatar Yann Hodique Committed by GitHub

ci(lint): fix the lint-shellcheck target (#12857)

Excessive backslashing made the command invalid.
Also address the lint-shellcheck current discoveries.
parent b5a2955a
......@@ -10,7 +10,7 @@ semgrep-test:
semgrep scan --test semgrep/
lint-shellcheck:
find . -type f -name '*.sh' -not -path '*/node_modules/*' -not -path './packages/contracts-bedrock/lib/*' -not -path './packages/contracts-bedrock/kout*/*' -exec sh -c 'echo \"Checking $1\"; shellcheck \"$1\"' _ {} \\;
find . -type f -name '*.sh' -not -path '*/node_modules/*' -not -path './packages/contracts-bedrock/lib/*' -not -path './packages/contracts-bedrock/kout*/*' -exec sh -c 'echo "Checking $1"; shellcheck "$1"' _ {} \;
install-foundry:
curl -L https://foundry.paradigm.xyz | bash && just update-foundry
......
......@@ -207,13 +207,13 @@ get_log_results
# Now you can use ${results[0]} and ${results[1]}
# to check the results of kontrol_build and kontrol_prove, respectively
if [ ${results[0]} -ne 0 ] && [ ${results[1]} -ne 0 ]; then
if [ "${results[0]}" -ne 0 ] && [ "${results[1]}" -ne 0 ]; then
echo "Kontrol Build and Prove Failed"
exit 1
elif [ ${results[0]} -ne 0 ]; then
elif [ "${results[0]}" -ne 0 ]; then
echo "Kontrol Build Failed"
exit 1
elif [ ${results[1]} -ne 0 ]; then
elif [ "${results[1]}" -ne 0 ]; then
echo "Kontrol Prove Failed"
exit 2
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment