In case the paths to the tools are wrong, inform the
user about it instead of complaining that no capture files could be found. svn path=/trunk/; revision=16037
This commit is contained in:
parent
322999c545
commit
16bd74ab0c
|
@ -42,6 +42,17 @@ ulimit -S -t $MAX_CPU_TIME -v $MAX_VMEM
|
|||
# r Read packet data from the following infile
|
||||
TETHEREAL_ARGS="-nVxr"
|
||||
|
||||
NOTFOUND=0
|
||||
for i in "$TETHEREAL" "$EDITCAP" "$CAPINFOS" "$DATE" "$TMP_DIR" ; do
|
||||
if [ ! -x $i ]; then
|
||||
echo "Couldn't find $i"
|
||||
NOTFOUND=1
|
||||
fi
|
||||
done
|
||||
if [ $NOTFOUND -eq 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Make sure we have a valid test set
|
||||
FOUND=0
|
||||
for CF in "$@" ; do
|
||||
|
|
Loading…
Reference in New Issue