check existence of /etc/os-release

This commit is contained in:
GaugeK
2020-08-20 11:19:05 +10:00
parent 205831ab61
commit 579e6b54fb
+2 -1
View File
@@ -48,7 +48,8 @@ elif [ "$DISPLAY" ]; then
fi
## Distro
. /etc/os-release # a common file that has variables about the distro
o=/etc/os-release
[ -f $o ] && . $o # a common file that has variables about the distro
## Memory
# loop over lines in /proc/meminfo until it reaches MemTotal,