From dcc77b057722adeac7b39c64eccf7ab6fff61f1a Mon Sep 17 00:00:00 2001
From: Dmitry Keller
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
-tar zxf swiftly-$(uname -m).tar.gz && \
+ curlo! -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" && \
+tar zxf "swiftly-$(uname -m).tar.gz" && \
./swiftly init --quiet-shell-followup && \
. ~/.local/share/swiftly/env.sh && \
hash -r
diff --git a/install/linux/swiftly/index.md b/install/linux/swiftly/index.md
index e45dbf3ae..d1286d38f 100644
--- a/install/linux/swiftly/index.md
+++ b/install/linux/swiftly/index.md
@@ -6,21 +6,21 @@ title: Getting Started with Swiftly on Linux
Download swiftly for [Linux (Intel)](https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-x86_64.tar.gz), or [Linux (ARM)](https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-aarch64.tar.gz).
```
-curl -O https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
+curl -O "https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz"
```
You can verify the integrity of the archive using the PGP signature. This will download the signature, install the swift.org signatures into your keychain, and verify the signature.
```
curl https://www.swift.org/keys/all-keys.asc | gpg --import -
-curl -O https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz.sig
-gpg --verify swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz.sig swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
+curl -O "https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz.sig"
+gpg --verify "swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz.sig" "swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz"
```
Extract the archive.
```
-tar -zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
+tar -zxf "swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz"
```
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain.
From d7172c4a4dea612113d6713c81048e7a893dd1b6 Mon Sep 17 00:00:00 2001
From: Dmitry Keller
Date: Tue, 15 Apr 2025 23:34:29 +0300
Subject: [PATCH 2/2] fixup! fix: linux instalation docs
---
_includes/install/_linux_platforms_tabs.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_includes/install/_linux_platforms_tabs.md b/_includes/install/_linux_platforms_tabs.md
index bc13143aa..bcb1bb539 100644
--- a/_includes/install/_linux_platforms_tabs.md
+++ b/_includes/install/_linux_platforms_tabs.md
@@ -6,7 +6,7 @@
The Swiftly installer manages Swift and its dependencies. It supports switching between different versions and downloading updates.
Run this in a terminal:
- curlo! -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" && \
+ curl -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" && \
tar zxf "swiftly-$(uname -m).tar.gz" && \
./swiftly init --quiet-shell-followup && \
. ~/.local/share/swiftly/env.sh && \