mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-10 13:06:22 +08:00
Fix: chsrc_get_cpuarch()
and chsrc_prepend_to_file()
[GitHub PR #42] * Fix - `chsrc_get_cpuarch()`: Use `uname -m` instead of `-p` - `chsrc_prepend_to_file()`: Add missing space * Add new contributor
This commit is contained in:
parent
2aee15e25d
commit
c319fa82fc
@ -4,7 +4,7 @@
|
|||||||
* File : chsrc.h
|
* File : chsrc.h
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* | Heng Guo <2085471348@qq.com>
|
* | Heng Guo <2085471348@qq.com>
|
||||||
* Contributors : Null Nil <null@nil.com>
|
* Contributors : Peng Gao <gn3po4g@outlook.com>
|
||||||
* |
|
* |
|
||||||
* Created on : <2023-08-29>
|
* Created on : <2023-08-29>
|
||||||
* Last modified : <2024-07-03>
|
* Last modified : <2024-07-03>
|
||||||
@ -750,7 +750,7 @@ chsrc_get_cpuarch ()
|
|||||||
exist = chsrc_check_program ("uname");
|
exist = chsrc_check_program ("uname");
|
||||||
if (exist)
|
if (exist)
|
||||||
{
|
{
|
||||||
ret = xy_run ("uname -p", 0, NULL);
|
ret = xy_run ("uname -m", 0, NULL);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user