Skip to content

Commit

Permalink
Patched installation process when encounter a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Aug 16, 2024
1 parent ea7bc3f commit 7c6d053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ISM/Software.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1378,9 +1378,9 @@ module ISM
makeDirectoryNoChroot(finalDestination)
end

if !File.directory?(entry)
#Use install to avoid any crash ?
moveFileNoChroot(entry,finalDestination)
if !File.directory?(entry) || File.symlink?(entry)
#Use install to avoid any crash ?
File.symlink?(entry) ? moveFile(entry.gsub(Ism.settings.rootPath,""),finalDestination.sub(Ism.settings.rootPath,"")) : moveFileNoChroot(entry,finalDestination)
end

end
Expand Down

0 comments on commit 7c6d053

Please sign in to comment.