Also update the gyb file

This commit is contained in:
kingiol
2019-03-24 21:09:07 +08:00
committed by Dennis Weissmann
parent 109010a9ea
commit b2f1a326cf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -271,7 +271,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "./Utils/gyb --line-directive '' -o ./Source/Device.generated.swift ./Source/Device.swift.gyb";
shellScript = "./Utils/gyb --line-directive '' -o ./Source/Device.generated.swift ./Source/Device.swift.gyb\n";
};
6D76661D1F1A083A00F59630 /* Run SwiftLint */ = {
isa = PBXShellScriptBuildPhase;
@@ -285,7 +285,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi";
shellScript = "if which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */
+2 -2
View File
@@ -851,8 +851,8 @@ extension Device {
/// Return the root url
///
/// - returns: the "/" url
private static let rootURL = URL(fileURLWithPath: "/")
/// - returns: the NSHomeDirectory() url
private static let rootURL = URL(fileURLWithPath: NSHomeDirectory())
/// The volumes total capacity in bytes.
public static var volumeTotalCapacity: Int? {