Skip to content

Commit a0add73

Browse files
authored
Merge pull request #2909 from hi-rustin/rustin-patch-source
Add quotes for source command
2 parents d34bf02 + 1f3a19f commit a0add73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cli/self_update.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ but will not be added automatically."
209209
#[cfg(not(windows))]
210210
macro_rules! post_install_msg_unix {
211211
() => {
212-
r"# Rust is installed now. Great!
212+
r#"# Rust is installed now. Great!
213213
214214
To get started you may need to restart your current shell.
215215
This would reload your `PATH` environment variable to include
216216
Cargo's bin directory ({cargo_home}/bin).
217217
218218
To configure your current shell, run:
219-
source {cargo_home}/env
220-
"
219+
source "{cargo_home}/env"
220+
"#
221221
};
222222
}
223223

@@ -237,14 +237,14 @@ Cargo's bin directory ({cargo_home}\\bin).
237237
#[cfg(not(windows))]
238238
macro_rules! post_install_msg_unix_no_modify_path {
239239
() => {
240-
r"# Rust is installed now. Great!
240+
r#"# Rust is installed now. Great!
241241
242242
To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
243243
environment variable. This has not been done automatically.
244244
245245
To configure your current shell, run:
246-
source {cargo_home}/env
247-
"
246+
source "{cargo_home}/env"
247+
"#
248248
};
249249
}
250250

0 commit comments

Comments
 (0)