Skip to content

Commit

Permalink
Just quote the package tool executable path
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 23, 2020
1 parent 2850a54 commit 71e1fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMCompiler/Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -3873,11 +3873,11 @@ algorithm
ext := if Autoconf.os == "Windows_NT" then ".exe" else "";
if encrypt then
// create the path till packagetool
packageTool := stringAppendList({"\"",omhome,pd,"lib",pd,"omc",pd,"SEMLA",pd,"packagetool",ext,"\""});
packageTool := stringAppendList({omhome,pd,"lib",pd,"omc",pd,"SEMLA",pd,"packagetool",ext});
if System.regularFileExists(packageTool) then
// create the list of arguments for packagetool
packageToolArgs := "-librarypath \"" + System.dirname(fileName) + "\" -version \"1.0\" -language \"3.2\" -encrypt \"" + boolString(encrypt) + "\"";
command := stringAppendList({packageTool," ",packageToolArgs});
command := stringAppendList({"\"",packageTool,"\""," ",packageToolArgs});
else
Error.addMessage(Error.ENCRYPTION_NOT_SUPPORTED, {packageTool});
success := false;
Expand Down

0 comments on commit 71e1fc0

Please sign in to comment.