Skip to content

Commit ba727bc

Browse files
authored
Update install-toolchain.sh
1 parent e11a87a commit ba727bc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/install-toolchain.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ fi
1818

1919
case $(uname -s) in
2020
Darwin)
21-
toolchain_download="$swift_tag-macos-x86_64.tar.gz"
21+
toolchain_download="$swift_tag-macos_x86_64.tar.gz"
2222
echo '-macos' >> .swift-version
2323
;;
2424
Linux)
2525
if [ $(grep RELEASE /etc/lsb-release) == "DISTRIB_RELEASE=18.04" ]; then
26-
toolchain_download="$swift_tag-ubuntu18.04-x86_64.tar.gz"
27-
echo '-ubuntu18.04' >> .swift-version
26+
toolchain_download="$swift_tag-ubuntu18.04_x86_64.tar.gz"
2827
elif [ $(grep RELEASE /etc/lsb-release) == "DISTRIB_RELEASE=20.04" ]; then
29-
toolchain_download="$swift_tag-ubuntu20.04-x86_64.tar.gz"
30-
echo '-ubuntu20.04' >> .swift-version
28+
toolchain_download="$swift_tag-ubuntu20.04_x86_64.tar.gz"
3129
else
3230
echo "Unknown Ubuntu version"
3331
exit 1

0 commit comments

Comments
 (0)