Hi guys, I am actually trying to fin a good way to strip a file list.
I tried into a process, but the problem is if one stripping fail (for example because it’s a Dir), it stop the stripping. Have you got any suggestion to bypass this ? You need to keep in mind that I need performance, and I can’t pay the cost to use a process for every single file.
My software handle the use of the bit SUID if you wonder.
Actually my program is using this method, but most of the file are not stripped.
def stripFileListNoChroot(fileList : Array(String))
requestedCommands = <<-CMD
strip --strip-unneeded #{fileList.join("\" || true\nstrip --strip-unneeded \"")} || true
CMD
process = Process.run(requestedCommands, shell: true)
rescue
end