As POSIX as it gets

这个提交包含在:
Julian Ospald 2018-09-29 17:53:14 +08:00
父节点 8e2dcc9511
当前提交 055739e0f9
找不到此签名对应的密钥
GPG 密钥 ID: 511B62C09D50CD28
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -95,7 +95,7 @@ get_distro_name() {
# freedesktop.org and systemd
. /etc/os-release
printf "$NAME"
elif type lsb_release >/dev/null 2>&1; then
elif command -V lsb_release >/dev/null 2>&1; then
# linuxbase.org
printf "$(lsb_release -si)"
elif [ -f /etc/lsb-release ]; then
@ -116,7 +116,7 @@ get_distro_ver() {
# freedesktop.org and systemd
. /etc/os-release
printf "$VERSION_ID"
elif type lsb_release >/dev/null 2>&1; then
elif command -V lsb_release >/dev/null 2>&1; then
# linuxbase.org
printf "$(lsb_release -sr)"
elif [ -f /etc/lsb-release ]; then