mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
fix logic err
This commit is contained in:
parent
2258643a46
commit
e7180edc95
1 changed files with 3 additions and 1 deletions
4
run.sh
4
run.sh
|
@ -4,7 +4,7 @@ cmake -S . -B build
|
|||
cmake --build build
|
||||
|
||||
# Check if the build was successful
|
||||
if [ ! -d "build" ]; then
|
||||
if [ ! -f "build/raytracer" ]; then
|
||||
echo "Build directory not found. Build failed."
|
||||
exit 1
|
||||
fi
|
||||
|
@ -19,3 +19,5 @@ for jsonfile in "assets"/*.json; do
|
|||
break
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f build/raytracer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue