summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-02-01 13:40:38 +0000
committerMika Havela <mika.havela@gmail.com>2008-02-01 13:40:38 +0000
commit12b7229458339ac17986a927139a301cb3343d4f (patch)
tree00456c992043fdb7b16c7958c8cd9212cda8a5d8 /lib
parent16acb92a450f83c61c301021b922f2c3ee8b147a (diff)
downloadacf-core-12b7229458339ac17986a927139a301cb3343d4f.tar.bz2
acf-core-12b7229458339ac17986a927139a301cb3343d4f.tar.xz
Chaning the way this lib reports back status
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@675 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib')
-rw-r--r--lib/getopts.lua4
1 files changed, 2 insertions, 2 deletions
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)