Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
# File where error tests are outputed
# Old ERRLIST is backuped
ERRLIST=${ERRLIST:-errlist}
# File where error tests are outputed
# Old ERRLIST is backuped
ERRLIST=${ERRLIST:-errlist}
if [ $# = 0 ]; then
usage;
exit
fi
if [ $# = 0 ]; then
usage;
exit
fi
-# Backup and initiate new ERRLIST
if [ "x$ERRLIST" = "x" ]; then
ERRLIST=/dev=null
else
if [ "x$ERRLIST" = "x" ]; then
ERRLIST=/dev=null
else
- if [ -x "$ERRLIST" ]; then
- mv "$ERRLIST" "${ERRLIST}.bak"
- fi
+# write $ERRLIST
+if [ "x$ERRLIST" != "x" ]; then
+ if [ -x "$ERRLIST_TARGET" ]; then
+ mv "$ERRLIST_TARGET" "${ERRLIST_TARGET}.bak"
+ fi
+ mv $ERRLIST $ERRLIST_TARGET
+fi
+
if [ -n "$nok" ]; then
exit 1
else
if [ -n "$nok" ]; then
exit 1
else