Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2011 16:15:45 -0800 (PST)
From:      Roger Marquis <marquis@roble.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: bump of PORTREVISION mandatory?
Message-ID:  <20110129002750.ADD46106566C@hub.freebsd.org>
In-Reply-To: <20110128120031.21B5A1065763@hub.freebsd.org>
References:  <20110128120031.21B5A1065763@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Helmut Schneider wrote:
> Would it make sense to have the making process sleep for a few seconds
> or have the user to press a key before proceeding? If I didn't wait for
> the lines I wouldn't really have noticed it.

Why not do one or the other depending on the terminal:

   tty >/dev/null 2>&1
   if [ $? = 0 ]; then
     echo -n "$msg.  Continue [Y/^C]: "
     read x y z
   else
     echo "$msg.  Continuing in 10s, ^C to abort ..."
     sleep 10
   fi

Roger Marquis



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110129002750.ADD46106566C>