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 Dec 12, 2022
1 parent df60bbd commit 5fd3a90
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions root/etc/cont-init.d/29-config-custom
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ curl https://download.swift.org/swift-5.7.1-release/ubuntu2204/swift-5.7.1-RELEA
tar zxvf swift.tar.gz
rm swift.tar.gz
mv swift-5.7.1-RELEASE-ubuntu22.04/ swift
sudo mv swift/ /
echo 'export PATH=/swift/usr/bin:"${PATH}"' >> ~/.bashrc
source ~/.bashrc

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

echo "Checking Swift version"
swift -version

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

echo "Swift installed for VSCode"
echo "Swift binaries installed for VSCode. Make sure to also install the 'sswg.swift-lang' extension in VSCode"

0 comments on commit 5fd3a90

Please sign in to comment.