diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-31 20:54:15 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-31 20:54:15 +0000 |
commit | 9cd01527b032b6e3c8be2b6806b5d26041f9e48c (patch) | |
tree | 12a940a9641cc56f78cac3272afc607e0b8e8af8 /lib | |
parent | f41e6f501d5d246d1190fcca46d3c11526031cf8 (diff) | |
download | acf-core-9cd01527b032b6e3c8be2b6806b5d26041f9e48c.tar.bz2 acf-core-9cd01527b032b6e3c8be2b6806b5d26041f9e48c.tar.xz |
Changed the way the lib reports back status
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@672 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getopts.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |