mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
GHS: Remove bashism from custom command shell scripts
This commit is contained in:
@@ -376,7 +376,7 @@ void cmGhsMultiTargetGenerator::WriteCustomCommandsHelper(
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
std::string check_error = "if %errorlevel% neq 0 exit /b %errorlevel%";
|
std::string check_error = "if %errorlevel% neq 0 exit /b %errorlevel%";
|
||||||
#else
|
#else
|
||||||
std::string check_error = "if [[ $? -ne 0 ]]; then exit 1; fi";
|
std::string check_error = "if [ $? -ne 0 ]; then exit 1; fi";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|||||||
Reference in New Issue
Block a user