]> Creatis software - creaToolsTools.git/commitdiff
Clean code
authordavila <davila@localhost.localdomain>
Tue, 1 Oct 2024 16:16:48 +0000 (18:16 +0200)
committerdavila <davila@localhost.localdomain>
Tue, 1 Oct 2024 16:16:48 +0000 (18:16 +0200)
Linux/scripts/LocalFunctions.sh

index 2973faf63a7fa9e7e08d1c17b39af34728508c80..57369546f2e1c66d68ac52035e856c79ba99ba5c 100644 (file)
@@ -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