Skip to content
Snippets Groups Projects

dbscripts: fix createlinks for filenames that contain spaces

Merged Christian Heusel requested to merge gromit/infrastructure:524-createlinks-spaces into master
  1. Aug 20, 2023
    • Christian Heusel's avatar
      dbscripts: fix createlinks for filenames that contain spaces · 2ad7fefa
      Christian Heusel authored
      So far the for loop recognized filenames with spaces as different words:
      
      $ for f in $(find pkg -type f); do echo "$f"; done
      pkg/usr/bin/Surge
      XT
      Effects
      pkg/usr/bin/Surge
      XT
      
      While the correct output here would have been:
      pkg/usr/bin/Surge XT Effects
      pkg/usr/bin/Surge XT
      
      We fix this by just passing everything directly to readelf, which also
      removes the loop overhead. This results in a significant speedup for
      packages with a lot of libraries and binaries.
      
      fixes: #524
      
      
      Co-Authored-By: default avatarEvangelos Foutras <evangelos@foutras.com>
      Verified
      2ad7fefa
Loading