Skip to content

Commit 676e47c

Browse files
committed
Fix XDG_CONFIG_HOME to point to the user home directory, not just root
1 parent 329dc51 commit 676e47c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftlyTests/E2ETests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class E2ETests: SwiftlyTests {
9494
} else if shell.hasSuffix("zsh") {
9595
env["ZDOTDIR"] = FileManager.default.homeDirectoryForCurrentUser.path
9696
} else if shell.hasSuffix("fish") {
97-
env["XDG_CONFIG_HOME"] = "/root/.config"
97+
env["XDG_CONFIG_HOME"] = FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent(".config").path
9898
}
9999

100100
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)