projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid empty metada files
[anna.git]
/
example
/
diameter
/
pcapDecoder
/
tsharkDecoder.sh
diff --git
a/example/diameter/pcapDecoder/tsharkDecoder.sh
b/example/diameter/pcapDecoder/tsharkDecoder.sh
index
b713b49
..
3628318
100755
(executable)
--- a/
example/diameter/pcapDecoder/tsharkDecoder.sh
+++ b/
example/diameter/pcapDecoder/tsharkDecoder.sh
@@
-354,5
+354,13
@@
then
rm $RESULTS_DIR/.wanted $RESULTS_DIR/.all
fi
rm $RESULTS_DIR/.wanted $RESULTS_DIR/.all
fi
+# Purge frames with invalid metadata:
+invalid=( $(grep -lw "^code=$" $RESULTS_DIR/*metadata) )
+for file in ${invalid[@]}
+do
+ frm=$(basename $file | cut -d\. -f1)
+ rm $RESULTS_DIR/${frm}.*
+done
+
_exit "Done!" 0
_exit "Done!" 0