mugen: Fix ShellCheck warnings and extra_test build issues ShellCheck fixes (all changed .sh files): - SC2086: Quote variables to prevent globbing/word splitting - SC2006: Replace backticks with $() notation - SC2164: Add || exit after pushd/popd - SC2068: Quote array expansions (main $@ -> main "$@") - SC2048: Use "${array[@]}" instead of ${array[*]} - SC2155: Split local var=$(cmd) into separate declare and assign - SC2124: Use $* instead of $@ when assigning to string - SC2162: Add -r flag to read commands - SC2034: Add disable comments for indirectly used variables - SC1091: Add disable comments for source files - SC2076: Remove quotes from =~ right side - Add .shellcheckrc for remaining style checks extra_test build fixes: - Fix libgpg-error/libgcrypt build order and sysroot install - Fix sh -> bash in all extra_test Makefiles - Fix GPG_ERROR_CONFIG path for libgcrypt configure Signed-off-by: alichinese_admin <lixinyu44@huawei.com> |