1
0
Derivar 0

As POSIX as it gets

Este cometimento está contido em:
Julian Ospald 2018-09-29 17:53:14 +08:00
ascendente 8e2dcc9511
cometimento 055739e0f9
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 511B62C09D50CD28
1 ficheiros modificados com 2 adições e 2 eliminações

Ver ficheiro

@ -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