Skip to content

Commit 6afd7ca

Browse files
committed
remove deps on ObjCBool when compiling on Linux
1 parent 0256e6a commit 6afd7ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Plugins/AWSLambdaPackager/Plugin.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,12 @@ private struct Configuration: CustomStringConvertible {
307307
self.verboseLogging = verboseArgument
308308

309309
if let outputPath = outputPathArgument.first {
310+
#if os(Linux)
311+
var isDirectory: Bool = false
312+
#else
310313
var isDirectory: ObjCBool = false
311-
guard FileManager.default.fileExists(atPath: outputPath, isDirectory: &isDirectory), isDirectory.boolValue
314+
#endif
315+
guard FileManager.default.fileExists(atPath: outputPath, isDirectory: &isDirectory)
312316
else {
313317
throw Errors.invalidArgument("invalid output directory '\(outputPath)'")
314318
}

0 commit comments

Comments
 (0)