From: davila Date: Tue, 1 Oct 2024 16:16:48 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=62b8afdd0679357b87ef5641ccc2421580dd85f5;p=creaToolsTools.git Clean code --- 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