Quote:
Originally Posted by
porter
It would help if you explained how you were using the script and it's functions.
Hi
function imple()
{
if [ ! -d $sourcedir ] ; then
echo " $sourcedir is not found from the release directory $RELPATH " | tee -a $REPLIMPLOG
exit // This exit is throwing me out of the session
elif [ ! -d $destdir ] ; then
echo " $destdir is not available in the production environment. " | tee -a $REPLIMPLOG
exit // This exit is throwing me out of the session
elif [ ! -d $destbak ] ; then
echo " $destbak is not available in the production environment. " | tee -a $RELIMPLOG
exit // This exit is throwing me out of the session
else
valid_flag=0
fi
}
I hope this is enough for u.