mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-10-17 10:49:31 +00:00
Check for os-release in /etc and /usr/lib
This commit is contained in:
1 parent
0ac1b7d216
commit
5dd087585c
1 file changed
+6
-2
@@ -19,8 +19,12 @@ _() { # [ a = b ] with globbing
|
||||
[ "$DESKTOP_SESSION" ] && wm="$DESKTOP_SESSION"
|
||||
|
||||
## Distro
|
||||
o=/etc/os-release
|
||||
[ -f $o ] && . $o # a common file that has variables about the distro
|
||||
# freedesktop.org/software/systemd/man/os-release.html
|
||||
# a common file that has variables about the distro
|
||||
for os in /etc/os-release /usr/lib/os-release; do
|
||||
# some POSIX shells exit when trying to source a file that doesn't exist
|
||||
[ -f $os ] && . $os && break
|
||||
done
|
||||
|
||||
if [ -e /proc/$$/comm ]; then
|
||||
while [ ! "$term" ]; do
|
||||
|
||||
Reference in new issue
Block a user