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

commit cf900fd799d8057e7e480b4df24a07a831eb2dcc
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Nov 20 19:19:20 2020 -0800

    Update NCCli.scala
---
 .../main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 91366f2..af3e07c 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,11 +3478,11 @@ object NCCli extends App {
     private def doCommand(args: Seq[String], repl: Boolean): Unit = {
         if (args.nonEmpty) {
             if (args.head.head == '$') {
-                val head = args.head.tail.trim
+                val head = args.head.tail.trim // Remove '$' from 1st argument.
                 val tail = args.tail.toList
 
                 try
-                    execOsCmd(if (head.isEmpty) tail else head :: tail) // 
Remove '$' from 1st argument.
+                    execOsCmd(if (head.isEmpty) tail else head :: tail)
                 catch {
                     case e: Exception ⇒ error(e.getLocalizedMessage)
                 }

Reply via email to