From 9cd01527b032b6e3c8be2b6806b5d26041f9e48c Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 31 Jan 2008 20:54:15 +0000 Subject: Changed the way the lib reports back status git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@672 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/getopts.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/getopts.lua b/lib/getopts.lua index 9940f53..644b741 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, "Invalid usage of function getopts.setoptsinfile()" + return 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 "File '" .. file .. "'has been modifyed!" + return true, "File '" .. file .. "'has been modifyed!" end function getoptsfromfile (file, search, filter) -- cgit v1.2.3