added verbose
This commit is contained in:
@@ -13,18 +13,22 @@ local targetFilepath = "/usr/PowerManager/"
|
|||||||
local helpText = "Usage:\n" .. "updater <nothing> - manual update and install\n".."updater -h - this particular text\n" .. " '' -a - automatic update no install\n" .. " '' -i - automatic update and install"
|
local helpText = "Usage:\n" .. "updater <nothing> - manual update and install\n".."updater -h - this particular text\n" .. " '' -a - automatic update no install\n" .. " '' -i - automatic update and install"
|
||||||
|
|
||||||
function manualUpdate()
|
function manualUpdate()
|
||||||
|
print("Manual repo pull...")
|
||||||
downloadRepo(repository, targetFilepath, false)
|
downloadRepo(repository, targetFilepath, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function manualInstall()
|
function manualInstall()
|
||||||
|
print("installing shortcut...")
|
||||||
os.execute("mv shortcut.lua /usr/bin/powerman.lua")
|
os.execute("mv shortcut.lua /usr/bin/powerman.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
function automaticUpdate()
|
function automaticUpdate()
|
||||||
|
print("Auto repo pull...")
|
||||||
downloadRepo(repository, targetFilepath, true)
|
downloadRepo(repository, targetFilepath, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
function automaticInstall()
|
function automaticInstall()
|
||||||
|
print("Installing shortcut...")
|
||||||
os.execute("mv shortcut.lua /usr/bin/powerman.lua")
|
os.execute("mv shortcut.lua /usr/bin/powerman.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user