mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Avoid blocking on Linux Mint's /etc/upstream-release/lsb-release
This commit is contained in:
parent
bddcfbec6c
commit
5eef6b2cfc
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ if [ -f /etc/rpi-issue ]; then
|
|||
OS="raspbian"
|
||||
fi
|
||||
|
||||
if tmp=$(grep ^VERSION_ID= /etc/*elease); then
|
||||
# /etc/lsb-release could also be grep'd. But /etc/upstream-release/lsb-release
|
||||
# on Linux Mint 20 caused grep of /etc/*elease to fail (on directory not file)
|
||||
if tmp=$(grep ^VERSION_ID= /etc/os-release); then
|
||||
VERSION_ID=$(echo $tmp | cut -d= -f2)
|
||||
VERSION_ID=${VERSION_ID//\"/} # Remove all '"'
|
||||
VERSION_ID=${VERSION_ID%%.*} # Remove all '.' & stuff to the right of em
|
||||
|
|
Loading…
Add table
Reference in a new issue