Directory with space in name not working for 'working_directory'

When setting the working_directory in a build, it sets the CIRCLE_WORKING_DIRECTORY environment variable to that value, so if the directory has a space like "01 Test" it would set it to:

CIRCLE_WORKING_DIRECTORY=01 Test

So when it goes to create the directory it calls mkdir 01 Test -- which would result in two directories being created (01 and Test). With this in mind, you can protect the space with single quotes like this:

working_directory: "01' 'Test"

That should result in the variable being set to CIRCLE_WORKING_DIRECTORY=01' 'Test which should properly account for the space.

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

Comments

0 comments

Article is closed for comments.