forked from ungleich-public/cdist
Merge pull request #485 from dheule/suse_os_version_explorer
use /etc/os-release instead of /etc/SuSE-release
This commit is contained in:
commit
e349d10ed7
1 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,11 @@ case "$($__explorer/os)" in
|
||||||
cat /etc/slackware-version
|
cat /etc/slackware-version
|
||||||
;;
|
;;
|
||||||
suse)
|
suse)
|
||||||
cat /etc/SuSE-release
|
if [ -f /etc/os-release ]; then
|
||||||
|
cat /etc/os-release
|
||||||
|
else
|
||||||
|
cat /etc/SuSE-release
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
ubuntu)
|
ubuntu)
|
||||||
lsb_release -sr
|
lsb_release -sr
|
||||||
|
|
Loading…
Reference in a new issue