summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--opennhrp-model.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7e61ace..3ef354d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
APP_NAME=opennhrp
PACKAGE=acf-$(APP_NAME)
-VERSION=0.3.0
+VERSION=0.3.1
APP_DIST=\
opennhrp-controller.lua \
diff --git a/opennhrp-model.lua b/opennhrp-model.lua
index 224155a..af2438a 100644
--- a/opennhrp-model.lua
+++ b/opennhrp-model.lua
@@ -204,7 +204,7 @@ function update_filecontent (self, modifications)
end
function get_logfile ()
local file = {}
- local cmdtxt = "cat /var/log/messages | grep " .. processname
+ local cmdtxt = "grep " .. processname .. " /var/log/messages"
local cmd, error = io.popen(cmdtxt ,r)
local cmdoutput = cmd:read("*a")
cmd:close()