@@ -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