mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
GHS: Remove bashism from custom command shell scripts
This commit is contained in:
1 parent
6efdd7e814
commit
172475b2c5
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user