Skip to content

Commit 9bd8ac5

Browse files
committed
update run_all.sh
1 parent d68a739 commit 9bd8ac5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

run_all.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ for dir in */; do
55

66
cd "$dir" || continue
77

8-
for file in *.zig; do
9-
echo -e "\n\nRun: $file"
10-
zig run "$file"
11-
done
8+
if [[ -f "build.zig" ]]; then
9+
echo -e "\n\nFound build.zig, running: zig build run"
10+
zig build run
11+
else
12+
for file in *.zig; do
13+
echo -e "\n\nRun: $file"
14+
zig run "$file"
15+
done
16+
fi
1217

1318
cd ..
1419
done

0 commit comments

Comments
 (0)