Skip to content

Commit de9f95a

Browse files
committed
Set XDG_CONFIG_HOME to point fish to the correct location
1 parent eb7c5d7 commit de9f95a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/SwiftlyTests/E2ETests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ final class E2ETests: SwiftlyTests {
9595
env["ZDOTDIR"] = FileManager.default.homeDirectoryForCurrentUser.path
9696
} else if shell.hasSuffix("fish") {
9797
env["fish_trace"] = "on"
98-
// TODO: remove this check
99-
try Swiftly.currentPlatform.runProgram(shell, "-c", "cat \(FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".config/fish/conf.d/swiftly.fish").path)")
98+
env["XDG_CONFIG_HOME"] = "/root/.config"
10099
}
101100

102101
try Swiftly.currentPlatform.runProgram(shell, "-l", "-c", "swiftly install --assume-yes latest --post-install-file=./post-install.sh", env: env)

0 commit comments

Comments
 (0)