mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
message rewording, fixed colors on deletions
This commit is contained in:
parent
63c990a3cf
commit
c5fb299f55
@ -108,7 +108,7 @@ write_install()
|
|||||||
green()
|
green()
|
||||||
print("Done!")
|
print("Done!")
|
||||||
white()
|
white()
|
||||||
print("Use can use the freshly installed 'ccmsim' program to manage your off-line installation.")
|
print("All files have been installed. The app can be started with 'startup' and configured with 'configure'.")
|
||||||
lgray()
|
lgray()
|
||||||
print("You do not need to run it now though, your system is all ready to start! Launch with 'startup'.")
|
print("Hint: You can use 'ccmsim' to manage your off-line installation.")
|
||||||
white()
|
white()
|
||||||
|
@ -182,6 +182,7 @@ elseif mode == "update-rm" or mode == "uninstall" then
|
|||||||
local dependencies = manifest.depends
|
local dependencies = manifest.depends
|
||||||
|
|
||||||
-- delete all installed files
|
-- delete all installed files
|
||||||
|
lgray()
|
||||||
for _, dependency in pairs(dependencies) do
|
for _, dependency in pairs(dependencies) do
|
||||||
local files = file_list[dependency]
|
local files = file_list[dependency]
|
||||||
for _, file in pairs(files) do
|
for _, file in pairs(files) do
|
||||||
@ -204,7 +205,6 @@ elseif mode == "update-rm" or mode == "uninstall" then
|
|||||||
local log_deleted = false
|
local log_deleted = false
|
||||||
local settings_file = app..".settings"
|
local settings_file = app..".settings"
|
||||||
|
|
||||||
lgray()
|
|
||||||
if fs.exists(settings_file) and settings.load(settings_file) then
|
if fs.exists(settings_file) and settings.load(settings_file) then
|
||||||
local log = settings.get("LogPath")
|
local log = settings.get("LogPath")
|
||||||
if log ~= nil then
|
if log ~= nil then
|
||||||
@ -217,9 +217,7 @@ elseif mode == "update-rm" or mode == "uninstall" then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not log_deleted then
|
if not log_deleted then
|
||||||
red();println("Failed to delete log file.")
|
red();println("Failed to delete log file (it may not exist).");lgray()
|
||||||
white();println("press any key to continue...")
|
|
||||||
any_key();lgray()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if mode == "uninstall" then
|
if mode == "uninstall" then
|
||||||
|
@ -540,6 +540,7 @@ elseif mode == "uninstall" then
|
|||||||
table.insert(dependencies, app)
|
table.insert(dependencies, app)
|
||||||
|
|
||||||
-- delete all installed files
|
-- delete all installed files
|
||||||
|
lgray()
|
||||||
for _, dependency in pairs(dependencies) do
|
for _, dependency in pairs(dependencies) do
|
||||||
local files = file_list[dependency]
|
local files = file_list[dependency]
|
||||||
for _, file in pairs(files) do
|
for _, file in pairs(files) do
|
||||||
@ -562,7 +563,6 @@ elseif mode == "uninstall" then
|
|||||||
local log_deleted = false
|
local log_deleted = false
|
||||||
local settings_file = app..".settings"
|
local settings_file = app..".settings"
|
||||||
|
|
||||||
lgray()
|
|
||||||
if fs.exists(settings_file) and settings.load(settings_file) then
|
if fs.exists(settings_file) and settings.load(settings_file) then
|
||||||
local log = settings.get("LogPath")
|
local log = settings.get("LogPath")
|
||||||
if log ~= nil then
|
if log ~= nil then
|
||||||
@ -575,9 +575,7 @@ elseif mode == "uninstall" then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not log_deleted then
|
if not log_deleted then
|
||||||
red();println("Failed to delete log file.")
|
red();println("Failed to delete log file (it may not exist).");lgray()
|
||||||
white();println("press any key to continue...")
|
|
||||||
any_key();lgray()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if fs.exists(settings_file) then
|
if fs.exists(settings_file) then
|
||||||
|
Loading…
Reference in New Issue
Block a user