Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sct_run_batch: handle the case of unexecutable script #3031

Merged

Conversation

cfhammill
Copy link
Contributor

Either sets the script itself to executable if the output directory is the current working directory, or sets the output directory copy to executable and uses that.

This should resolve #3030.

Potential improvement:
Right now, sct_run_batch copies the user's script to the output directory, in the event the current working directory is the output directory there is no copy made. In this case I opted to modify the original script, which is perhaps distasteful, but I feel it is relatively harmless. If others disagree, we could make a copy with a suffix and modify the permissions on that.

Either sets the script itself to executable if the output
directory is the current working directory, or sets the
output directory copy to executable and uses that.
@leandervaneekelen
Copy link

I can confirm this solves the issue described in #3030 and on the forum post . Thanks!

@jcohenadad jcohenadad added this to the next-release milestone Nov 11, 2020
@jcohenadad jcohenadad added enhancement category: improves performance/results of an existing feature sct_run_batch context: labels Nov 11, 2020
@jcohenadad jcohenadad merged commit c0dd49c into master Nov 11, 2020
@jcohenadad jcohenadad deleted the cfh/3030_run-batch_deal-with-non-executable-script branch November 11, 2020 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement category: improves performance/results of an existing feature sct_run_batch context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty log files produced by sct_run_batch due to non-executable script
3 participants