浏览代码

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

正在加载...
取消
保存