Skip to content

Commit 22d9a3e

Browse files
committed
Put protective quotes around the home directory expansion
1 parent 12e39f0 commit 22d9a3e

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
@@ -30,7 +30,7 @@ function setShell() {
3030
shellToggle.innerText = "sh";
3131
} else {
3232
shell = "sh";
33-
code.innerText += ". ${SWIFTLY_HOME_DIR:-~/.local/share/swiftly}/env.sh && \\\n"
33+
code.innerText += ". \"${SWIFTLY_HOME_DIR:-~/.local/share/swiftly}/env.sh\" && \\\n"
3434
code.innerText += "hash -r"
3535
shellToggle.innerText = "fish";
3636
}

install/macos/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function setShell() {
4444
shellToggle.innerText = "sh";
4545
} else {
4646
shell = "sh";
47-
code.innerText += ". ${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh && \\\n"
47+
code.innerText += ". \"${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh\" && \\\n"
4848
code.innerText += "hash -r"
4949
shellToggle.innerText = "fish";
5050
}

0 commit comments

Comments
 (0)