Skip to content

Commit fcdfe5b

Browse files
committed
Force shell into interactive mode so that it sources the profile changes
1 parent 0e1320c commit fcdfe5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
image: "ubuntu:22.04"
6464
steps:
6565
- name: Prepare System
66-
run: apt update && apt -y install ca-certificates gpg
66+
run: apt-get update && apt-get -y install ca-certificates gpg
6767
- name: Download Release
6868
uses: actions/download-artifact@v4
6969
with:

Tests/SwiftlyTests/E2ETests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ final class E2ETests: SwiftlyTests {
8686

8787
let shell = try await Swiftly.currentPlatform.getShell()
8888

89-
// TODO remove this
89+
// TODO: remove this
9090
print("CHECKING /root/.profile")
9191
try Swiftly.currentPlatform.runProgram("cat", "/root/.profile")
9292

93-
try Swiftly.currentPlatform.runProgram(shell, "-l", "-c", "swiftly install --assume-yes latest --post-install-file=./post-install.sh")
93+
try Swiftly.currentPlatform.runProgram(shell, "-i", "-l", "-c", "swiftly install --assume-yes latest --post-install-file=./post-install.sh")
9494

9595
if FileManager.default.fileExists(atPath: "./post-install.sh") {
9696
try Swiftly.currentPlatform.runProgram(shell, "./post-install.sh")
9797
}
9898

99-
try Swiftly.currentPlatform.runProgram(shell, "-l", "-c", "swift --version", quiet: false)
99+
try Swiftly.currentPlatform.runProgram(shell, "-i", "-l", "-c", "swift --version", quiet: false)
100100
}
101101
}

0 commit comments

Comments
 (0)