GRDB: quote PROJECT_DIR and SRCROOT environment variables.

Using those variables without quoting will yield unexpected results if
they contain spaces.
This commit is contained in:
Ben Yohay committed 2021-12-29 14:40:56 +02:00
1 parent c945504a34
commit 4a3232199f
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