Skip to content

Commit

Permalink
Quote the packagetool command
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 20, 2020
1 parent 56c9805 commit 4650237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -3873,7 +3873,7 @@ 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) + "\"";
Expand Down

0 comments on commit 4650237

Please sign in to comment.