After quite a bit of Google searching I can't seem to find the answer. What does the -t do in the context of this code?
if [ ! -t 1 ]
then
SCRIPTLOG=$LOG_DIR/$SCRIPT.log
exec >>$SCRIPTLOG 2>&1
chmod 644 $SCRIPTLOG
fi
After quite a bit of Google searching I can't seem to find the answer. What does the -t do in the context of this code?
if [ ! -t 1 ]
then
SCRIPTLOG=$LOG_DIR/$SCRIPT.log
exec >>$SCRIPTLOG 2>&1
chmod 644 $SCRIPTLOG
fi