소스 검색

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 \