mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-23 16:59:39 +08:00
Fix missing ' for echo for r
and julia
Gitee link #I83824
This commit is contained in:
parent
c1d4c7ce5f
commit
72ef94bac7
6
chsrc.c
6
chsrc.c
@ -758,7 +758,7 @@ pl_r_setsrc (char* option)
|
|||||||
if (xy_on_windows)
|
if (xy_on_windows)
|
||||||
cmd = xy_strjoin(3, "echo ", file, " >> %USERPROFILE%/Documents/.Rprofile");
|
cmd = xy_strjoin(3, "echo ", file, " >> %USERPROFILE%/Documents/.Rprofile");
|
||||||
else
|
else
|
||||||
cmd = xy_strjoin(3, "echo ", file, " >> ~/.Rprofile");
|
cmd = xy_strjoin(3, "echo '", file, "' >> ~/.Rprofile");
|
||||||
|
|
||||||
chsrc_runcmd(cmd);
|
chsrc_runcmd(cmd);
|
||||||
|
|
||||||
@ -767,7 +767,7 @@ pl_r_setsrc (char* option)
|
|||||||
if (xy_on_windows)
|
if (xy_on_windows)
|
||||||
cmd = xy_strjoin(3, "echo ", file, " >> %USERPROFILE%/Documents/.Rprofile");
|
cmd = xy_strjoin(3, "echo ", file, " >> %USERPROFILE%/Documents/.Rprofile");
|
||||||
else
|
else
|
||||||
cmd = xy_strjoin(3, "echo ", file, " >> ~/.Rprofile");
|
cmd = xy_strjoin(3, "echo '", file, "' >> ~/.Rprofile");
|
||||||
|
|
||||||
chsrc_runcmd(cmd);
|
chsrc_runcmd(cmd);
|
||||||
chsrc_say_thanks(&source);
|
chsrc_say_thanks(&source);
|
||||||
@ -821,7 +821,7 @@ pl_julia_setsrc (char* option)
|
|||||||
"& echo ", file, " >> %USERPROFILE%/.julia/config/startup.jl");
|
"& echo ", file, " >> %USERPROFILE%/.julia/config/startup.jl");
|
||||||
else
|
else
|
||||||
cmd = xy_strjoin(4, xy_str_to_quietcmd("mkdir -p ~/.julia/config"),
|
cmd = xy_strjoin(4, xy_str_to_quietcmd("mkdir -p ~/.julia/config"),
|
||||||
";echo ", file, " >> ~/.julia/config/startup.jl");
|
";echo '", file, "' >> ~/.julia/config/startup.jl");
|
||||||
|
|
||||||
chsrc_runcmd(cmd);
|
chsrc_runcmd(cmd);
|
||||||
chsrc_say_thanks(&source);
|
chsrc_say_thanks(&source);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user