fix logic err

This commit is contained in:
Shuo Feng 2024-03-04 03:01:41 -05:00
parent 2258643a46
commit e7180edc95
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1

4
run.sh
View file

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