Skip to content

Commit 5fd3a90

Browse files
authored
Update 29-config-custom
1 parent df60bbd commit 5fd3a90

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

root/etc/cont-init.d/29-config-custom

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ curl https://download.swift.org/swift-5.7.1-release/ubuntu2204/swift-5.7.1-RELEA
88
tar zxvf swift.tar.gz
99
rm swift.tar.gz
1010
mv swift-5.7.1-RELEASE-ubuntu22.04/ swift
11-
sudo mv swift/ /
12-
echo 'export PATH=/swift/usr/bin:"${PATH}"' >> ~/.bashrc
13-
source ~/.bashrc
11+
12+
echo "Adding Swift to PATH"
13+
echo 'export PATH=/swift/usr/bin:"${PATH}"' >> /root/.bashrc
14+
source /root/.bashrc
1415

1516
echo "Checking Swift version"
1617
swift -version
1718

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

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

0 commit comments

Comments
 (0)