We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d532b5 commit 9fd9ed6Copy full SHA for 9fd9ed6
dicom2mesh/test/test-ppa-dicom2mesh.sh
@@ -25,11 +25,16 @@ echo "Running dicom2mesh..."
25
dicom2mesh -i "$INPUT_FILE" -o "$OUTPUT_FILE" # <-- You will adjust this command line as needed
26
27
# Step 4: Check output
28
-if [ -f "$OUTPUT_FILE" ]; then
29
- echo "✅ Output file '$OUTPUT_FILE' was successfully generated."
+if [ -s "$OUTPUT_FILE" ]; then
+ echo "✅ Output file '$OUTPUT_FILE' exists and is not empty."
30
+ ls -lh "$OUTPUT_FILE"
31
exit 0
32
+elif [ -f "$OUTPUT_FILE" ]; then
33
+ echo "❌ Output file '$OUTPUT_FILE' exists but is empty."
34
+ exit 1
35
else
36
echo "❌ Output file '$OUTPUT_FILE' was not found."
37
exit 1
38
fi
39
40
+
0 commit comments