Skip to content

Commit e333536

Browse files
authored
Correct swiftly copyable shell scripts for case where SWIFTLY_HOME_DIR is set (#974)
1 parent 17c7c39 commit e333536

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_includes/install/_linux_platforms_tabs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<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; \
1010
tar zxf "swiftly-$(uname -m).tar.gz" &amp;&amp; \
1111
./swiftly init --quiet-shell-followup &amp;&amp; \
12-
. ~/.local/share/swiftly/env.sh &amp;&amp; \
12+
. ${SWIFTLY_HOME_DIR:-~/.local/share/swiftly}/env.sh &amp;&amp; \
1313
hash -r
1414
</code></pre></div></div>
1515
<h4>License: <a href="https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt">Apache-2.0</a> | PGP: <a href="https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz.sig">Signature</a></h4>

install/macos/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ title: Install Swift
1616
<div class="language-plaintext highlighter-rouge"><div class="highlight"><button>Copy</button><pre class="highlight"><code>curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg &amp;&amp; \
1717
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory &amp;&amp; \
1818
~/.swiftly/bin/swiftly init --quiet-shell-followup &amp;&amp; \
19-
. ~/.swiftly/env.sh &amp;&amp; \
19+
. ${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh &amp;&amp; \
2020
hash -r
2121
</code></pre></div></div>
2222
<h4>License: <a href="https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt">Apache-2.0</a></h4>

0 commit comments

Comments
 (0)