Parcourir la source

Restrict for exactly same model name selection into bash script

Jérôme BUISINE il y a 5 ans
Parent
commit
f78b769f26
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      simulation/run_maxwell_simulation_filters_statistics.sh

+ 1 - 1
simulation/run_maxwell_simulation_filters_statistics.sh

@@ -22,7 +22,7 @@ for nb_zones in {4,6,8,10,12}; do
             echo $MODEL_NAME
             echo $MODEL_NAME
 
 
             # only compute if necessary (perhaps server will fall.. Just in case)
             # only compute if necessary (perhaps server will fall.. Just in case)
-            if grep -q "${MODEL_NAME}" "${simulate_models}"; then
+            if grep -xq "${MODEL_NAME}" "${simulate_models}"; then
 
 
                 echo "Run simulation for ${MODEL_NAME}..."
                 echo "Run simulation for ${MODEL_NAME}..."