Merge topic 'ghs_generator_bashism_fix'

172475b2c5 GHS: Remove bashism from custom command shell scripts

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6409
This commit is contained in:
Brad King
2021-08-02 19:08:43 +00:00
committed by Kitware Robot
+1 -1
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