cd @AMANDA_TMPDIR@ || exit 1
TEMP=@AMANDA_TMPDIR@/amverify.$$
-trap 'rm -fr $TEMP' EXIT
+trap 'rm -fr $TEMP' 0
if ( umask 077 ; mkdir $TEMP ) ; then
:
else
# Unless we went over, there is no extra output.
report "End-of-Tape detected."
break
- elif [ -n "$EOI" ]; then
- report "End-of-Information detected."
- break
else
report "** Error detected ($FILE)"
echo "$VOLUME ($FILE):" >>$DEFECTS
sendreport
-rm -fr $TEMP
-trap - EXIT
-
exit 0