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 0fe8fe0  Update NCCli.scala
0fe8fe0 is described below

commit 0fe8fe0abc0c19b4b99bba7b46058cf895776c13
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Nov 20 19:16:22 2020 -0800

    Update NCCli.scala
---
 .../src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 3 ++-
 1 file changed, 2 insertions(+), 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 c757ca3..91366f2 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
@@ -3478,8 +3478,9 @@ object NCCli extends App {
     private def doCommand(args: Seq[String], repl: Boolean): Unit = {
         if (args.nonEmpty) {
             if (args.head.head == '$') {
-                val head = args.head.trim
+                val head = args.head.tail.trim
                 val tail = args.tail.toList
+
                 try
                     execOsCmd(if (head.isEmpty) tail else head :: tail) // 
Remove '$' from 1st argument.
                 catch {

Reply via email to