Skip to content

Commit

Permalink
Update 29-config-custom
Browse files Browse the repository at this point in the history
  • Loading branch information
rursache authored Apr 27, 2023
1 parent 4da5dc5 commit 280f29d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions root/etc/cont-init.d/29-config-custom
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@ apt update && apt install binutils git gnupg2 libc6-dev libcurl4 libedit2 libgcc

echo "Installing Swift binaries"
curl 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
tar zxvf swift.tar.gz
tar --strip-components=1 -zxf swift.tar.gz --directory /
rm swift.tar.gz
mv swift-5.8-RELEASE-ubuntu22.04/ swift

echo "Adding Swift to PATH"
echo 'export PATH=/swift/usr/bin:"${PATH}"' >> /root/.bashrc
source /root/.bashrc

echo "Checking Swift version"
/swift/usr/bin/swift -version
/usr/bin/swift -version

echo "Adding Swift to PATH for VSCode"
echo 'export PATH=/swift/usr/bin:"${PATH}"' >> /config/.bashrc && source /config/.bashrc
echo 'export PATH=/usr/bin:"${PATH}"' >> /config/.bashrc && source /config/.bashrc

echo "Swift binaries installed for VSCode. Trying to install the sswg.swift-lang extension"

Expand Down

0 comments on commit 280f29d

Please sign in to comment.