Skip to content

Fix word splitting on run_docker script#2260

Merged
hoodmane merged 2 commits intopyodide:mainfrom
ryanking13:run_docker/fix
Mar 8, 2022
Merged

Fix word splitting on run_docker script#2260
hoodmane merged 2 commits intopyodide:mainfrom
ryanking13:run_docker/fix

Conversation

@ryanking13
Copy link
Member

@ryanking13 ryanking13 commented Mar 8, 2022

#2257 added a double quote on every bash variable, but there was an error because we have some intended word-splitting stuff.

@ryanking13 ryanking13 changed the title Bring back intended word splitting on run_docker script Fix word splitting on run_docker script Mar 8, 2022
run_docker Outdated
CONTAINER=$(\
docker run \
"$PORT_CONFIGURATION_LINE" \
$PORT_CONFIGURATION_LINE \
Copy link
Contributor

@henryiii henryiii Mar 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also make it explicit by using an array ("@{PORT_CONFIGURATION_LINE[@]}" + set it as an array), then you don't need to disable the shellcheck check.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that could be better for consistency. Thanks for the suggestion.

@hoodmane hoodmane merged commit 114c24d into pyodide:main Mar 8, 2022
@hoodmane hoodmane deleted the run_docker/fix branch March 8, 2022 17:29
hoodmane pushed a commit to hoodmane/pyodide that referenced this pull request Mar 10, 2022
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.

3 participants