Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 4198ff9

Browse files
author
Nikhil Bhoski
committed
corrected typo and updated as per review
1 parent 3bd0a74 commit 4198ff9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/mathworks/ci/MatlabCommandStepExecution.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
6363
final String uniqueTmpFldrName = getUniqueNameForRunnerFile();
6464
final String uniqueCommandFile =
6565
"command_" + getUniqueNameForRunnerFile().replaceAll("-", "_");
66-
final FilePath uniqeTmpFolderPath =
66+
final FilePath uniqueTmpFolderPath =
6767
getFilePathForUniqueFolder(launcher, uniqueTmpFldrName, workspace);
6868

6969
// Create MATLAB script
70-
createMatlabScriptByName(uniqeTmpFolderPath, uniqueCommandFile, workspace, listener);
70+
createMatlabScriptByName(uniqueTmpFolderPath, uniqueCommandFile, workspace, listener);
7171
ProcStarter matlabLauncher;
7272

7373
try {
7474
matlabLauncher = getProcessToRunMatlabCommand(workspace, launcher, listener, envVars,
75-
"cd('"+ uniqeTmpFolderPath.getRemote().replaceAll("'", "''") +"');"+ uniqueCommandFile, uniqueTmpFldrName);
75+
"cd('"+ uniqueTmpFolderPath.getRemote().replaceAll("'", "''") +"'); "+ uniqueCommandFile, uniqueTmpFldrName);
7676
listener.getLogger()
7777
.println("#################### Starting command output ####################");
7878
return matlabLauncher.pwd(workspace).join();
@@ -82,8 +82,8 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
8282
return 1;
8383
} finally {
8484
// Cleanup the tmp directory
85-
if (uniqeTmpFolderPath.exists()) {
86-
uniqeTmpFolderPath.deleteRecursive();
85+
if (uniqueTmpFolderPath.exists()) {
86+
uniqueTmpFolderPath.deleteRecursive();
8787
}
8888
}
8989
}

0 commit comments

Comments
 (0)