Makefile Command Inconsistencies

Default Shell

Occasionally, Makefile commands won't behave as expected within a Docker image - for example, creating multiple directories with mkdir -p build/{assets,bin} will produce a directory named {assets,bin}/ rather than two directories (assets/ and bin/). This is typically because make does not know which shell to use, defaulting to one that does not handle the command parameters as expected. Your step in .circleci/config.yml should have the following line added to ensure bash is used:

-run:
shell: /bin/bash
command: mkdir -p build/{assets,bin}

 

Additional Resources:

Was this article helpful?
3 out of 3 found this helpful

Comments

0 comments

Article is closed for comments.