diff --git a/src/GenieBuilder.jl b/src/GenieBuilder.jl index 3b4a4eff..14823952 100755 --- a/src/GenieBuilder.jl +++ b/src/GenieBuilder.jl @@ -91,14 +91,10 @@ function postinstall() end for app in readdir(APPS_FOLDER[]) - trashme_file = joinpath(APPS_FOLDER[], app, ".trashme") - if isfile(trashme_file) - modified_app_name = open(trashme_file) do io - strip(read(io, String)) - end - - mv(joinpath(APPS_FOLDER[], app), joinpath(TRASH_FOLDER[], modified_app_name)) - rm(joinpath(TRASH_FOLDER[], modified_app_name, ".trashme")) + app_path = joinpath(APPS_FOLDER[], app) + + if isfile(joinpath(app_path, ".trashme")) + rm(app_path, recursive=true) end end end