Skip to content

Commit

Permalink
- fix strange windows behaviour when renamed directory gets deleted r…
Browse files Browse the repository at this point in the history
…ight away (#513)
  • Loading branch information
Delwing authored May 5, 2020
1 parent 03d8329 commit 509b045
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions skrypty/utils/installer/installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ function scripts.installer:handle_unzip_scripts(event, ...)
if event == "sysUnzipDone" then
os.remove(scripts.installer.scripts_zip)
pcall(scripts.installer.delete_dir, scripts.installer.scripts_directory)
os.rename(scripts.installer.unzip_directory, scripts.installer.scripts_directory)
uninstallPackage("Arkadia")
installPackage(scripts.installer.scripts_directory .. "Arkadia.xml")
scripts:print_log("Ok, zrestartuj Mudleta")
tempTimer(1, function()
os.rename(scripts.installer.unzip_directory, scripts.installer.scripts_directory)
installPackage(scripts.installer.scripts_directory .. "Arkadia.xml")
scripts:print_log("Ok, zrestartuj Mudleta")
end)
elseif event == "sysUnzipError" then
scripts:print_log("Blad podczas rozpakowywania skryptow")
end
Expand Down

0 comments on commit 509b045

Please sign in to comment.