From 492606703c4d0888f833c11feb6a1147a3d5745d Mon Sep 17 00:00:00 2001 From: Frederick Meisel Date: Fri, 23 Feb 2024 17:31:28 +0100 Subject: [PATCH] added update functionality from powerman update --- shortcut.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shortcut.lua b/shortcut.lua index 5751732..96c9ba4 100644 --- a/shortcut.lua +++ b/shortcut.lua @@ -11,9 +11,13 @@ if args[1] == "-h" then print(helpText) return 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") return else - print('"'..args[1]..'" - Bad argument. you can use: powerman update') + print('"'..args[1]..'" - Bad argument. you can use: powerman update ') return end \ No newline at end of file