Browse Source

corrected distroid

pull/1946/merge
Daniel Gibbs 7 years ago
parent
commit
05b5705c3f
  1. 2
      lgsm/functions/info_distro.sh

2
lgsm/functions/info_distro.sh

@ -56,7 +56,7 @@ do
elif [ -z "${distroversion}" ];then
distroversion=$(rpm -qa \*-release | grep -Ei "oracle|redhat|centos|fedora" | cut -d"-" -f3)
elif [ -z "${distroid}" ];then
distroid="$(wk '{print $1;}' /etc/redhat-release)"
distroid="$(awk '{print $1}' /etc/redhat-release)"
fi
fi
done

Loading…
Cancel
Save