From 12b7229458339ac17986a927139a301cb3343d4f Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 1 Feb 2008 13:40:38 +0000 Subject: Chaning the way this lib reports back status git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@675 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/getopts.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/getopts.lua') diff --git a/lib/getopts.lua b/lib/getopts.lua index 644b741..1c8b7bf 100644 --- a/lib/getopts.lua +++ b/lib/getopts.lua @@ -11,7 +11,7 @@ function setoptsinfile (file, search, option, value) opts[search] = {} end if not (search) or not (option) then - return nil, "Systeminformation - Invalid usage of function getopts.setoptsinfile()" + return fales, nil, "Systeminformation - Invalid usage of function getopts.setoptsinfile()" end --Change to new value @@ -34,7 +34,7 @@ function setoptsinfile (file, search, option, value) else fs.write_file(file,string.match(newfilecontent, "(.-)\n*$")) end - return true, "File '" .. file .. "'has been modifyed!" + return true, "File '" .. file .. "' has been modifyed!", nil end function getoptsfromfile (file, search, filter) -- cgit v1.2.3