-
Notifications
You must be signed in to change notification settings - Fork 177
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
Call bootstrap scripts with a tty. #449
Conversation
The exising bootstrip-in-dir script is changing stdin to be the result of the find command. fix yadm-dev#344
This triggers a shellcheck complaint:
|
That shellcheck warning seems like a bit of a false positive to me. https://www.shellcheck.net/wiki/SC2207
TIL that file name globbing would still happen in this situation:
Wild. I'll switch to use |
Inspired by #449 but using read instead of mapfile to make it work with bash 3.
Thanks a lot for your PR! The (potential) problem with mapfile is that it doesn't work with bash 3 which is the default bash version om macOS. I've just now pushed ec10041 which fixes the tty problem but using read instead of mapfile. |
Cheers. Thanks for merging! |
What does this PR do?
Changes the contributed bootstrap-in-dir script so that it passes the tty through to the individual bootstrap scripts.
What issues does this PR fix or reference?
#344
Previous Behavior
stdin for the individual scripts was the pipe from the find command.
New Behavior
stdin for the individual scripts is the same as it is for the bootstrap-in-dir script (typically a tty)
Have tests been written for this change?
no
Have these commits been signed with GnuPG?
no
Please review yadm's Contributing Guide for best practices.