Переглянути джерело

Fixes for previous commit

Vecna 1 місяць тому
батько
коміт
15ad9c02ed
2 змінених файлів з 4 додано та 4 видалено
  1. 2 2
      scripts/gen-configs.sh
  2. 2 2
      scripts/run-container.sh

+ 2 - 2
scripts/gen-configs.sh

@@ -10,9 +10,9 @@ uuid="$5"
 
 mkdir -p "configs/${uuid}"
 f1="configs/${uuid}/troll_patrol_config.json"
-cp "${f1}.template" "${f1}"
+cp "configs/troll_patrol_config.json.template" "${f1}"
 f2="configs/${uuid}/simulation_config.json"
-cp "${f2}.template" "${f2}"
+cp "configs/simulation_config.json.template" "${f2}"
 
 # Troll Patrol config
 sed -i "s/HARSHNESS/$harshness/" "${f1}"

+ 2 - 2
scripts/run-container.sh

@@ -10,9 +10,9 @@ container=$(docker run --rm -d -i $img)
 mkdir -p results/${exp_num}
 
 docker cp configs/${uuid}/troll_patrol_config.json $container:/home/user/troll-patrol/
-cat configs/troll_patrol_config.json >> "results/${exp_num}/${uuid}"-troll_patrol_config.json
+cat configs/${uuid}/troll_patrol_config.json >> "results/${exp_num}/${uuid}"-troll_patrol_config.json
 docker cp configs/${uuid}/simulation_config.json $container:/home/user/simulation/
-cat configs/simulation_config.json >> "results/${exp_num}/${uuid}"-simulation_config.json
+cat configs/${uuid}/simulation_config.json >> "results/${exp_num}/${uuid}"-simulation_config.json
 
 # Run rdsys to give bridges to LA
 docker exec $container sh \