mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 21:43:00 +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);
|
||||
}
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
chsrc_run (cmd, RunOpt_No_Last_New_Line|RunOpt_No_Note_On_Sccess);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
chsrc_run (cmd, RunOpt_No_Last_New_Line|RunOpt_No_Note_On_Sccess);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue
Block a user