mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-11-24 20:21:39 +00:00
check existence of /etc/os-release
This commit is contained in:
1 parent
205831ab61
commit
579e6b54fb
1 file changed
+2
-1
@@ -48,7 +48,8 @@ elif [ "$DISPLAY" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## Distro
|
## 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
|
## Memory
|
||||||
# loop over lines in /proc/meminfo until it reaches MemTotal,
|
# loop over lines in /proc/meminfo until it reaches MemTotal,
|
||||||
|
|||||||
Reference in new issue
Block a user