Linux: 「hostname」コマンドがなければ、「cat /etc/hostname」を実効する様に
このコミットが含まれているのは:
コミット
0079202d8b
|
@ -6,6 +6,7 @@
|
|||
* Linux: 「/proc/cpuinfo」で使ってCPU速さの受け取る様に
|
||||
* Kubuntu、Xubuntu、Lubuntuロゴの追加
|
||||
* Arcoロゴの追加
|
||||
* Linux: 「hostname」コマンドがなければ、「cat /etc/hostname」を実効する様に
|
||||
|
||||
# 0.2.0
|
||||
* Manjaroのロゴの追加
|
||||
|
|
|
@ -6,5 +6,6 @@ const char *display_user_name() {
|
|||
}
|
||||
|
||||
const char *display_user_host() {
|
||||
return run_command_s("hostname");
|
||||
return run_command_s("command -v hostname >/dev/null 2>&1 && hostname || "
|
||||
"cat /etc/hostname");
|
||||
}
|
||||
|
|
読み込み中…
新しいイシューから参照