Repository navigation
Check SDK Docker scripts on Bash 3.2 - #590
Merged
Merged
Conversation
macOS ships Bash 3.2, which rejects mapfile and empty arrays under set -u. Run that check when the wrappers change. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mapfileis replaced with areadloop, andbin/php-in-dockerno longer expands an empty array underset -u.bash:3.2image when they change.bash -nalone missesmapfile, so the check also rejects Bash 4 syntax and executes the wrappers withdockerstubbed.mainafter that pull request merges.Test plan
./bin/check-bash32passes under Bash 3.2.57mapfiletobin/docker-runfails the checkbin/php-in-dockerfails the checkMade with Cursor