File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,14 @@ apt update && apt install binutils git gnupg2 libc6-dev libcurl4 libedit2 libgcc
55
66echo "Installing Swift binaries"
77curl https://download.swift.org/swift-5.8-release/ubuntu2204/swift-5.8-RELEASE/swift-5.8-RELEASE-ubuntu22.04.tar.gz --output swift.tar.gz
8- tar zxvf swift.tar.gz
8+ tar --strip-components=1 -zxf swift.tar.gz --directory /
99rm swift.tar.gz
10- mv swift-5.8-RELEASE-ubuntu22.04/ swift
11-
12- echo "Adding Swift to PATH"
13- echo 'export PATH=/swift/usr/bin:"${PATH}"' >> /root/.bashrc
14- source /root/.bashrc
1510
1611echo "Checking Swift version"
17- /swift/ usr/bin/swift -version
12+ /usr/bin/swift -version
1813
1914echo "Adding Swift to PATH for VSCode"
20- echo 'export PATH=/swift/ usr/bin:"${PATH}"' >> /config/.bashrc && source /config/.bashrc
15+ echo 'export PATH=/usr/bin:"${PATH}"' >> /config/.bashrc && source /config/.bashrc
2116
2217echo "Swift binaries installed for VSCode. Trying to install the sswg.swift-lang extension"
2318
You can’t perform that action at this time.
0 commit comments