Skip to content

Commit

Permalink
Ammended previous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Aug 14, 2024
1 parent 77daf61 commit f98457a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ISM/Software.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1377,11 +1377,11 @@ module ISM
end
else
#Delete existing file instead of overriding it to avoid any crash
if File.exists?(finalDestination) && !File.symlink?(finalDestination)
if File.exists?(finalDestination)
deleteFileNoChroot(finalDestination)
end

File.symlink?(entry) && Ism.settings.installByChroot ? moveFile(entry.sub(Ism.settings.rootPath,"/"),finalDestination.gsub(Ism.settings.rootPath,"/")) : moveFileNoChroot(entry,finalDestination)
moveFileNoChroot(entry,finalDestination)

installedFiles << "/#{finalDestination.sub(Ism.settings.rootPath,"")}".squeeze("/")
end
Expand Down

0 comments on commit f98457a

Please sign in to comment.