Skip to content

Conversation

@HastD
Copy link
Contributor

@HastD HastD commented Dec 30, 2025

If scripts are only made executable right before they run, then a script that attempts to call a script later in the list will fail because that script won't be executable yet. Instead, make all files in the scripts directory executable first, then run the scripts in order.

gmpinder
gmpinder previously approved these changes Dec 30, 2025
@HastD HastD marked this pull request as draft December 31, 2025 02:02
If scripts are only made executable right before they run, then a script
that attempts to call a script later in the list will fail because that
script won't be executable yet. Instead, make all files in the scripts
directory executable first, then run the scripts in order.
@HastD HastD marked this pull request as ready for review December 31, 2025 02:12
@HastD HastD requested a review from gmpinder December 31, 2025 02:12
@HastD
Copy link
Contributor Author

HastD commented Dec 31, 2025

I just realized my initial PR wouldn't work properly, since it would only make the scripts executable that were included in that particular invocation of the scripts module, so it wouldn't cover scripts in the scripts directory that aren't on that list (such as auxiliary scripts meant to be invoked with arguments by another script, not directly by the scripts module). I've changed it to simply match the behavior of v1 of the scripts module and make all files in the scripts directory executable.

@gmpinder gmpinder merged commit 5f9c608 into blue-build:main Dec 31, 2025
@HastD HastD deleted the script-chmod-fix branch December 31, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants