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

bin: Correctly handle spaces in basedir and other refinements. #153

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Apteryks
Copy link

This also makes use of the Bash builtin extended test operator
features to streamline the conditionals.

  • bin/moodle-docker-compose: Do not use literal '$' in the user messages.
    (dockercompose): Rename variable to ...
    (dockercompose_cmd): ... this, which is made an array, which eases
    correctly handling quoting.
    (filename): Quote.
  • bin/moodle-docker-wait-for-app (basedir): Quote. Chain the
    conditions inside the same extended test.
  • bin/moodle-docker-wait-for-db (basedir): Quote. Do not use literal
    '$' in the error message.

Signed-off-by: Maxim Cournoyer [email protected]

This also makes use of the Bash builtin extended test operator
features to streamline the conditionals.

* bin/moodle-docker-compose: Do not use literal '$' in the user messages.
(dockercompose): Rename variable to ...
(dockercompose_cmd): ... this, which is made an array, which eases
correctly handling quoting.
(filename): Quote.
* bin/moodle-docker-wait-for-app (basedir): Quote.  Chain the
conditions inside the same extended test.
* bin/moodle-docker-wait-for-db (basedir): Quote.  Do not use literal
'$' in the error message.

Signed-off-by: Maxim Cournoyer <[email protected]>
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.

1 participant