From 62b8afdd0679357b87ef5641ccc2421580dd85f5 Mon Sep 17 00:00:00 2001 From: davila Date: Tue, 1 Oct 2024 18:16:48 +0200 Subject: [PATCH] Clean code --- Linux/scripts/LocalFunctions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index 2973faf..5736954 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -68,7 +68,7 @@ function getDistrib { ## elif [ "$OS" == Linux ] ; then OS=$(lsb_release -i | awk '{print $3}') elif [ ""$OS"" == Linux ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release` - if [ $OS == "" ] ; then + if [ -z "$OS" ] ; then OS=$(lsb_release -i | awk '{print $3}') fi else -- 2.47.1