mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
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:
1 parent
c945504a34
commit
4a3232199f
3 files changed
+6
-6
No files matched your search
@@ -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 */
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user