Correction bugs

This commit is contained in:
Ludovic Jacomme 1999-11-16 17:12:37 +00:00
parent 1324a07928
commit 7d313ffda5
1 changed files with 5 additions and 16 deletions

View File

@ -7,7 +7,7 @@
# Author: Frédéric Pétrot (fred@pasta.fr.ea)
# for version 0
#
# $Id: instool,v 1.19 1999/11/15 14:45:25 syf Exp $
# $Id: instool,v 1.20 1999/11/16 17:12:37 ludo Exp $
#
@ -259,19 +259,16 @@ echo " a message MUST be given for each installation"
cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status"
echo cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
chmod 775 $LABO/archi/$i/$j/`basename $k`.$DATE
if [ $? -ne 0 ] ; then
echo "`basename $0`: chmod returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
rm -f $LABO/archi/$i/$j/`basename $k` > /dev/null 2>&1
ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
if [ $? -ne 0 ] ; then
echo "`basename $0`: ln returned a non-zero exit status"
echo ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
@ -281,6 +278,7 @@ echo " a message MUST be given for each installation"
cp $k $LABO/archi/$i/$j >> $BUG 2>&1
if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status"
echo cp $k $LABO/archi/$i/$j
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
@ -288,25 +286,16 @@ echo " a message MUST be given for each installation"
ssh heavy ranlib $LABO/archi/$i/$j/`basename $k`
fi
chmod 664 $LABO/archi/$i/$j >> $BUG 2>&1
if [ $? -ne 0 ] ; then
echo "`basename $0`: chmod returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
done
else
cp $1/labo/$i/$j/* $LABO/archi/$i/$j >> $BUG 2>&1
if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status"
echo cp $1/labo/$i/$j/* $LABO/archi/$i/$j
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
chmod 664 $LABO/archi/$i/$j/* >> $BUG 2>&1
if [ $? -ne 0 ] ; then
echo "`basename $0`: chmod returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is"
exit 17
fi
fi
ls -1 $1/labo/$i/$j | fmt -70 >> $LOG
done