소스 검색

CI Hotfix: Check for cargo.toml files to determine current hw

Manuel Vögele 8 년 전
부모
커밋
8b46f5af03
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      ci/test-rust.sh

+ 1
- 1
ci/test-rust.sh 파일 보기

@@ -15,7 +15,7 @@ export RUSTFLAGS="--deny warnings"
15 15
 # generell die CI-Zeiten zu verringern, wechseln wir nie das Verzeichnis und
16 16
 # kompilieren immer nur die Aufgaben des aktuellsten Aufgabenblatts.
17 17
 
18
-current_hw=$(find . -type d -name 'hw*' | sort | tail -n1)
18
+current_hw=$(find . -type f | grep "hw./task./Cargo\.toml" | sort | tail -n1 | cut -d / -f -2)
19 19
 
20 20
 if [ -z "$current_hw" ]; then
21 21
     echo ""

Loading…
취소
저장