docs: escape cp for PROJECT_DIR with spaces (#504)

This commit is contained in:
Rémi Gebski 2020-10-06 14:20:09 +02:00 committed by GitHub
parent 2f68b94065
commit 907be7e7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,7 @@ Then edit the newly created scheme to make it use a different env file. From the
- Click "Pre-actions", and under the plus sign select "New Run Script Action" - Click "Pre-actions", and under the plus sign select "New Run Script Action"
- Where it says "Type a script or drag a script file", type: - Where it says "Type a script or drag a script file", type:
``` ```
cp ${PROJECT_DIR}/../.env.staging ${PROJECT_DIR}/../.env # replace .env.staging for your file cp "${PROJECT_DIR}/../.env.staging" "${PROJECT_DIR}/../.env" # replace .env.staging for your file
``` ```
Also ensure that "Provide build settings from", just above the script, has a value selected so that PROJECT_DIR is set. Also ensure that "Provide build settings from", just above the script, has a value selected so that PROJECT_DIR is set.