blue-build / modules

BlueBuild standard modules used for building your Atomic Images
Apache License 2.0
24 stars 0 forks source link

module feature idea: removing files in files module #247

Open noahdotpy opened 4 months ago

noahdotpy commented 4 months ago

This is something I actually use in my own custom modules that overrides the other files module. I have the code for it and will post the relevant sections and a link to the file.

In line 36 starts the logic for removing files from a list named RMV_FILES. I may attempt to merge this with the current official files module

Permalink to current custom module: https://github.com/noahdotpy/myublue/blob/dc44653fa141b133c352514b2bc80f8f9af4d3e5/modules/files/files.sh

Example Configuration

type: files
add:
  - usr: /usr
remove:
  # remove script that automatically creates ~/.justfile
  - /etc/profile.d/ublue-os-just.sh