Pārlūkot izejas kodu

Restrict for exactly same model name selection into bash script

Jérôme BUISINE 5 gadi atpakaļ
vecāks
revīzija
f78b769f26

+ 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
 
             # 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}..."