Salome HOME
erreur dans la logique pour vérifier que c'est une vm
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 7 Feb 2022 10:59:31 +0000 (11:59 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 7 Feb 2022 10:59:31 +0000 (11:59 +0100)
products/compil_scripts/topo2volmesh.sh

index 3e3d51436357d41c504f4b9af010e2e85520b9d7..9b6eb8193f221156b283ecc5fe5f70ffcdae942e 100755 (executable)
@@ -55,7 +55,7 @@ fi
 echo
 echo "*** Check if node is a virtual machine"
 ISVM=$(hostnamectl status|grep -i chassis:|grep vm)
-if [ $? -ne 0 ]; then
+if [ ! -z "$ISVM" ]; then
     echo "*** oversubscribe..."
     sed -i 's/mpirun -np \$(NP)/mpirun -np \$(NP) --oversubscribe/g' src/*/Makefile.am
 else