Skip to content

Commit

Permalink
Merge pull request #429 from Slepowid/patch-1
Browse files Browse the repository at this point in the history
Update deps.sh
  • Loading branch information
devttys0 committed Mar 12, 2020
2 parents 66612cd + 39fb5d5 commit dae66d1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deps.sh
Expand Up @@ -13,9 +13,14 @@ set -o nounset
if ! which lsb_release > /dev/null
then
function lsb_release {
if [ -f /etc/lsb-release ]
if [ -f /etc/os-release ]
then
cat /etc/lsb-release | grep DISTRIB_ID | cut -d= -f 2
[[ "$1" = "-i" ]] && cat /etc/os-release | grep ^"ID" | cut -d= -f 2
[[ "$1" = "-r" ]] && cat /etc/os-release | grep "VERSION_ID" | cut -d= -d'"' -f 2
elif [ -f /etc/lsb-release ]
then
[[ "$1" = "-i" ]] && cat /etc/lsb-release | grep "DISTRIB_ID" | cut -d= -f 2
[[ "$1" = "-r" ]] && cat /etc/lsb-release | grep "DISTRIB_RELEASE" | cut -d= -f 2
else
echo Unknown
fi
Expand Down

0 comments on commit dae66d1

Please sign in to comment.