This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new f822d97 Update NCCli.scala
f822d97 is described below
commit f822d97eab43e8fc54fddb33d71e8dffe1ac3878
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Nov 20 19:00:45 2020 -0800
Update NCCli.scala
---
.../src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index 2228230..0b0cae2 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -3479,7 +3479,7 @@ object NCCli extends App {
if (args.nonEmpty) {
if (args.head.head == '$')
try
- execOsCmd(args.head.tail :: args.tail.toList) // Remove
'$' from 1st argument.
+ execOsCmd(args.head.tail.trim() :: args.tail.toList) //
Remove '$' from 1st argument.
catch {
case e: Exception ⇒ error(e.getLocalizedMessage)
}