dice
dice copied to clipboard
Optimize license header script and improve efficiency
Improvements in This Version
✅ Handles package declaration properly
✅ Preserves file permissions
✅ Avoids unnecessary grep calls in the loop
✅ Uses mapfile for efficiency (reduces subshells)
✅ More optimized find command usage
@suhailroushan13 Please accept the CLA agreement before I can merge. Also, can you attach the proof that this script when run on the codebase works fine.
@suhailroushan13 any updates?
Hey! First of all, sorry for the late reply.
I've run the script on the codebase, and it works as expected. The header has been successfully added to the relevant files, and the script also displays which files were updated. Please find the proof attached below:
Let me know if there's anything else needed from my side!
Thanks for the patch. Merged.