compatible posfix sh

This commit is contained in:
arowser
2019-03-15 18:11:12 +08:00
committed by Rusty Russell
parent 2af3996bea
commit 04c60175ca

View File

@@ -30,7 +30,7 @@ if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$NAME
VER=$VERSION_ID
elif type lsb_release >/dev/null 2>&1; then
elif command -v lsb_release >/dev/null 2>&1; then
# linuxbase.org
OS=$(lsb_release -si)
VER=$(lsb_release -sr)