浏览代码

Restrict for exactly same model name selection into bash script

Jérôme BUISINE 5 年之前
父节点
当前提交
f78b769f26
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 
             # 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}..."