Skip to content

Commit a86ed49

Browse files
committed
Fix chsrc get rustup
1 parent 7c7c1dd commit a86ed49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/recipe/lang/Rust/rustup.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Contributors : Yangmoooo <[email protected]>
66
* |
77
* Created On : <2024-10-02>
8-
* Last Modified : <2024-12-18>
8+
* Last Modified : <2025-06-16>
99
* ------------------------------------------------------------*/
1010

1111
static SourceProvider_t pl_rust_binary_upstream =
@@ -36,10 +36,10 @@ def_sources_n(pl_rust_rustup);
3636
void
3737
pl_rust_rustup_getsrc (char *option)
3838
{
39-
char *cmd = "echo RUSTUP_UPDATE_ROOT;"
40-
"echo RUSTUP_DIST_SERVER;";
39+
char *cmd = "echo $RUSTUP_UPDATE_ROOT; "
40+
"echo $RUSTUP_DIST_SERVER;";
4141

42-
system (cmd);
42+
chsrc_run (cmd, RunOpt_Dont_Notify_On_Success|RunOpt_No_Last_New_Line);
4343
}
4444

4545

0 commit comments

Comments
 (0)