GHS: Remove bashism from custom command shell scripts

This commit is contained in:
Lawrence A
2021-07-28 18:24:42 +01:00
parent 6efdd7e814
commit 172475b2c5

View File

@@ -376,7 +376,7 @@ void cmGhsMultiTargetGenerator::WriteCustomCommandsHelper(
#ifdef _WIN32
std::string check_error = "if %errorlevel% neq 0 exit /b %errorlevel%";
#else
std::string check_error = "if [[ $? -ne 0 ]]; then exit 1; fi";
std::string check_error = "if [ $? -ne 0 ]; then exit 1; fi";
#endif
#ifdef _WIN32