added update functionality from powerman update <arguments>
This commit is contained in:
@@ -11,9 +11,13 @@ if args[1] == "-h" then
|
|||||||
print(helpText)
|
print(helpText)
|
||||||
return
|
return
|
||||||
elseif args[1] == "update" then
|
elseif args[1] == "update" then
|
||||||
|
if #args == 2 then
|
||||||
|
os.execute("/usr/PowerManager/updater.lua "..args[2])
|
||||||
|
return
|
||||||
|
end
|
||||||
os.execute("/usr/PowerManager/updater.lua -a")
|
os.execute("/usr/PowerManager/updater.lua -a")
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
print('"'..args[1]..'" - Bad argument. you can use: powerman update')
|
print('"'..args[1]..'" - Bad argument. you can use: powerman update <argument>')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user