Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Quoted PROJECT_DIR in build-step to handle paths that contain spaces or shell-characters #267

Merged
merged 1 commit into from

2 participants

@rfl-eqatec

The PROJECT_DIR environment variable was used without quotes in a build-step. This would cause problems if the path where the project was stored contained spaces or shell-characters.
The solution is to always enclose variables with quotes "" if they are being used as path/file arguments.

@rfl-eqatec

The PROJECT_DIR environment variable was used without quotes in a build-step. This would cause problems if the path where the project was stored contained spaces or shell-characters.
The solution is to always enclose variables with quotes "" if they are being used as path/file arguments.

@tomaz
Owner

Thanks, merging right now.

@tomaz tomaz merged commit 6abd243 into tomaz:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 29, 2012
  1. @rfl-eqatec
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  appledoc.xcodeproj/project.pbxproj
View
2  appledoc.xcodeproj/project.pbxproj
@@ -1263,7 +1263,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "#!/bin/bash\n\ncd Templates\nzip -r default_templates.zip .\nmv default_templates.zip $PROJECT_DIR\ncd ..";
+ shellScript = "#!/bin/bash\n\ncd Templates\nzip -r default_templates.zip .\nmv default_templates.zip \"$PROJECT_DIR\"\ncd ..";
};
B4D1FFF515FF637A009736E2 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
Something went wrong with that request. Please try again.