shellcheck: skip running shellcheck, with a warning, if running on riscv64

- someone go add riscv64 to https://github.com/koalaman/shellcheck
This commit is contained in:
Ricardo Pardini 2024-03-03 01:21:08 +01:00 committed by Igor
parent cd0820a0d5
commit fd7003125e

View File

@ -87,6 +87,11 @@ function run_tool_shellcheck() {
case "$MACHINE" in
*aarch64*) SHELLCHECK_ARCH="aarch64" ;;
*x86_64*) SHELLCHECK_ARCH="x86_64" ;;
*riscv64*)
# check https://github.com/koalaman/shellcheck in the future, build might be possible
display_alert "No RISC-V riscv64 support for SHELLCHECK" "SHELLCHECK will not run" "wrn"
return 0
;;
*)
exit_with_error "unknown arch: $MACHINE"
;;