From 055739e0f9842df06fd3a3e4ad458de7e89aec21 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 29 Sep 2018 17:53:14 +0800 Subject: [PATCH] As POSIX as it gets --- ghcup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghcup.sh b/ghcup.sh index 30b4924..5734c11 100755 --- a/ghcup.sh +++ b/ghcup.sh @@ -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