File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ defaults:
14
14
CIRCLE_TEST_REPORTS : /tmp/circleci-test-results
15
15
BUNDLE_PATH : vendor/bundle
16
16
docker :
17
- - image : norionomura/jazzy:swift-4.1.2
17
+ - image : norionomura/jazzy:swift-4.1.3
18
18
shell : /bin/bash --login -eo pipefail
19
19
- &prepare-storage
20
20
run :
Original file line number Diff line number Diff line change @@ -305,7 +305,15 @@ extension Filters.Strings {
305
305
/// - Throws: FilterError.invalidInputType if the value parameter isn't a string
306
306
static func dirname( _ value: Any ? ) throws -> Any ? {
307
307
let string = try Filters . parseString ( from: value)
308
+ #if os(Linux)
309
+ var result = NSString ( string: string) . deletingLastPathComponent
310
+ if result. isEmpty {
311
+ result = " . "
312
+ }
313
+ return result
314
+ #else
308
315
return Path ( string) . parent ( ) . normalize ( ) . string
316
+ #endif
309
317
}
310
318
311
319
/// Removes newlines and other whitespace from a string. Takes an optional Mode argument:
You can’t perform that action at this time.
0 commit comments