Browse Source

As POSIX as it gets

PR/133
Julian Ospald 5 years ago
parent
commit
055739e0f9
No known key found for this signature in database GPG Key ID: 511B62C09D50CD28
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ghcup.sh

+ 2
- 2
ghcup.sh View File

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


Loading…
Cancel
Save