Merge pull request #1121 from byohay/feature/fix-variables-with-spaces

GRDB: quote PROJECT_DIR and SRCROOT environment variables.
This commit is contained in:
Gwendal Roué authored and GitHub committed 2021-12-31 14:32:29 +01:00
commit 911b2a76d8
3 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -2861,7 +2861,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${PROJECT_DIR}/Scripts/swiftlint.sh\n";
shellScript = "\"${PROJECT_DIR}/Scripts/swiftlint.sh\"\n";
};
56EB54FA22C9115E00850069 /* Swiftlint */ = {
isa = PBXShellScriptBuildPhase;
@@ -2879,7 +2879,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${PROJECT_DIR}/Scripts/swiftlint.sh\n";
shellScript = "\"${PROJECT_DIR}/Scripts/swiftlint.sh\"\n";
};
AAA4DCFA230F1E0600C74B15 /* Swiftlint */ = {
isa = PBXShellScriptBuildPhase;
@@ -2897,7 +2897,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${PROJECT_DIR}/Scripts/swiftlint.sh\n";
shellScript = "\"${PROJECT_DIR}/Scripts/swiftlint.sh\"\n";
};
/* End PBXShellScriptBuildPhase section */
+2 -2
View File
@@ -2227,7 +2227,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${PROJECT_DIR}/Scripts/swiftlint.sh\n";
shellScript = "\"${PROJECT_DIR}/Scripts/swiftlint.sh\"\n";
};
56EB54FD22C9119B00850069 /* Swiftlint */ = {
isa = PBXShellScriptBuildPhase;
@@ -2245,7 +2245,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${PROJECT_DIR}/Scripts/swiftlint.sh\n";
shellScript = "\"${PROJECT_DIR}/Scripts/swiftlint.sh\"\n";
};
EED476F01CFD0B290026A4EC /* Copy .example configuration files (if no USER customizations exist) */ = {
isa = PBXShellScriptBuildPhase;
+1 -1
View File
@@ -8,7 +8,7 @@ if test -d "/opt/homebrew/bin/"; then
fi
if which swiftlint >/dev/null; then
swiftlint --config ${SRCROOT}/Scripts/swiftlint.yml
swiftlint --config "${SRCROOT}/Scripts/swiftlint.yml"
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi