mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-04-23 20:54:13 +08:00
fix problem in chsrc_get_cpuarch() and chsrc_prepend_to_file()
This commit is contained in:
parent
aa7ec3fb82
commit
4312427801
@ -680,7 +680,7 @@ chsrc_prepend_to_file (const char *str, const char *file)
|
||||
}
|
||||
else
|
||||
{
|
||||
cmd = xy_strjoin (4, "sed -i '1i ", str, "'", file);
|
||||
cmd = xy_strjoin (4, "sed -i '1i ", str, "' ", file);
|
||||
}
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
}
|
||||
@ -750,7 +750,7 @@ chsrc_get_cpuarch ()
|
||||
exist = chsrc_check_program ("uname");
|
||||
if (exist)
|
||||
{
|
||||
ret = xy_run ("uname -p", 0, NULL);
|
||||
ret = xy_run ("uname -m", 0, NULL);
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user