adtpro.sh: Only delay when started interactively

This commit is contained in:
T. Joseph Carter 2015-11-20 13:21:38 -08:00
parent e943aa7823
commit 20815bf010

View File

@ -139,4 +139,6 @@ $HEADLESS"$MY_JAVA_HOME"java -Xms256m -Xmx512m "$TWEAK" $ADTPRO_EXTRA_JAVA_PARMS
if [[ $1 == "serial" ]]; then if [[ $1 == "serial" ]]; then
echo "Starting up on interface $serialPortName. Please wait..." echo "Starting up on interface $serialPortName. Please wait..."
fi fi
sleep 30 if [ -t 0 ]; then
sleep 30
fi