From 579e6b54fbde175040c4c7039b576fce2ec6bf49 Mon Sep 17 00:00:00 2001 From: GaugeK Date: Thu, 20 Aug 2020 11:19:05 +1000 Subject: [PATCH] check existence of /etc/os-release --- fet.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fet.sh b/fet.sh index cf81926..2c00a2c 100755 --- a/fet.sh +++ b/fet.sh @@ -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,