Skip to content

Commit 123843c

Browse files
committed
Fix linux install command for zsh shell.
Motivation: The current shell script does not work for zsh resulting in the following error. zsh: parse error near `)'. Adding Modifications: Adding quotes around the file name fixes the command for bash and zsh. Tested locally. Result: Install command works for zsh and bash.
1 parent 9a4a440 commit 123843c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/install/_linux_platforms_tabs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
The Swiftly installer manages Swift and its dependencies. It supports switching between different versions and downloading updates.
77
</p>
88
<h4>Run this in a terminal:</h4>
9-
<div class="language-plaintext highlighter-rouge"><div class="highlight"><button>Copy</button><pre class="highlight"><code>curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz &amp;&amp; \
10-
tar zxf swiftly-$(uname -m).tar.gz &amp;&amp; \
9+
<div class="language-plaintext highlighter-rouge"><div class="highlight"><button>Copy</button><pre class="highlight"><code>curl -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" &amp;&amp; \
10+
tar zxf "swiftly-$(uname -m).tar.gz" &amp;&amp; \
1111
./swiftly init --quiet-shell-followup &amp;&amp; \
1212
. ~/.local/share/swiftly/env.sh &amp;&amp; \
1313
hash -r

0 commit comments

Comments
 (0)