ソースを参照

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