mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 16:41:51 +08:00
No echo when writing to file
This commit is contained in:
parent
ddf66ff65e
commit
4732ed8f5d
|
@ -671,7 +671,7 @@ chsrc_append_to_file (const char *str, const char *file)
|
||||||
{
|
{
|
||||||
cmd = xy_strjoin (4, "echo '", str, "' >> ", file);
|
cmd = xy_strjoin (4, "echo '", str, "' >> ", file);
|
||||||
}
|
}
|
||||||
chsrc_run (cmd, RunOpt_Default);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line|RunOpt_No_Note_On_Sccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -690,7 +690,7 @@ chsrc_prepend_to_file (const char *str, const char *file)
|
||||||
{
|
{
|
||||||
cmd = xy_strjoin (4, "sed -i '1i ", str, "' ", file);
|
cmd = xy_strjoin (4, "sed -i '1i ", str, "' ", file);
|
||||||
}
|
}
|
||||||
chsrc_run (cmd, RunOpt_Default);
|
chsrc_run (cmd, RunOpt_No_Last_New_Line|RunOpt_No_Note_On_Sccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user