message rewording, fixed colors on deletions

This commit is contained in:
Mikayla Fischler 2024-06-29 23:38:51 -04:00
parent 63c990a3cf
commit c5fb299f55
3 changed files with 6 additions and 10 deletions

View File

@ -108,7 +108,7 @@ write_install()
green()
print("Done!")
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()
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()

View File

@ -182,6 +182,7 @@ elseif mode == "update-rm" or mode == "uninstall" then
local dependencies = manifest.depends
-- delete all installed files
lgray()
for _, dependency in pairs(dependencies) do
local files = file_list[dependency]
for _, file in pairs(files) do
@ -204,7 +205,6 @@ elseif mode == "update-rm" or mode == "uninstall" then
local log_deleted = false
local settings_file = app..".settings"
lgray()
if fs.exists(settings_file) and settings.load(settings_file) then
local log = settings.get("LogPath")
if log ~= nil then
@ -217,9 +217,7 @@ elseif mode == "update-rm" or mode == "uninstall" then
end
if not log_deleted then
red();println("Failed to delete log file.")
white();println("press any key to continue...")
any_key();lgray()
red();println("Failed to delete log file (it may not exist).");lgray()
end
if mode == "uninstall" then

View File

@ -540,6 +540,7 @@ elseif mode == "uninstall" then
table.insert(dependencies, app)
-- delete all installed files
lgray()
for _, dependency in pairs(dependencies) do
local files = file_list[dependency]
for _, file in pairs(files) do
@ -562,7 +563,6 @@ elseif mode == "uninstall" then
local log_deleted = false
local settings_file = app..".settings"
lgray()
if fs.exists(settings_file) and settings.load(settings_file) then
local log = settings.get("LogPath")
if log ~= nil then
@ -575,9 +575,7 @@ elseif mode == "uninstall" then
end
if not log_deleted then
red();println("Failed to delete log file.")
white();println("press any key to continue...")
any_key();lgray()
red();println("Failed to delete log file (it may not exist).");lgray()
end
if fs.exists(settings_file) then