@@ -63,16 +63,16 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
63
63
final String uniqueTmpFldrName = getUniqueNameForRunnerFile ();
64
64
final String uniqueCommandFile =
65
65
"command_" + getUniqueNameForRunnerFile ().replaceAll ("-" , "_" );
66
- final FilePath uniqeTmpFolderPath =
66
+ final FilePath uniqueTmpFolderPath =
67
67
getFilePathForUniqueFolder (launcher , uniqueTmpFldrName , workspace );
68
68
69
69
// Create MATLAB script
70
- createMatlabScriptByName (uniqeTmpFolderPath , uniqueCommandFile , workspace , listener );
70
+ createMatlabScriptByName (uniqueTmpFolderPath , uniqueCommandFile , workspace , listener );
71
71
ProcStarter matlabLauncher ;
72
72
73
73
try {
74
74
matlabLauncher = getProcessToRunMatlabCommand (workspace , launcher , listener , envVars ,
75
- "cd('" + uniqeTmpFolderPath .getRemote ().replaceAll ("'" , "''" ) +"');" + uniqueCommandFile , uniqueTmpFldrName );
75
+ "cd('" + uniqueTmpFolderPath .getRemote ().replaceAll ("'" , "''" ) +"'); " + uniqueCommandFile , uniqueTmpFldrName );
76
76
listener .getLogger ()
77
77
.println ("#################### Starting command output ####################" );
78
78
return matlabLauncher .pwd (workspace ).join ();
@@ -82,8 +82,8 @@ private synchronized int execMatlabCommand(FilePath workspace, Launcher launcher
82
82
return 1 ;
83
83
} finally {
84
84
// Cleanup the tmp directory
85
- if (uniqeTmpFolderPath .exists ()) {
86
- uniqeTmpFolderPath .deleteRecursive ();
85
+ if (uniqueTmpFolderPath .exists ()) {
86
+ uniqueTmpFolderPath .deleteRecursive ();
87
87
}
88
88
}
89
89
}
0 commit comments