Don't prompt the build bot to delete its dir on error.

Change-Id: I9a4fc8ea0ed51a11a912f3d1c896579369fd8880

BUG=Tac0
TEST=Ran with USER=chrome-bot ./build_image and hit Ctrl+C

Review URL: http://codereview.chromium.org/6288012
This commit is contained in:
Chris Sosa 2011-01-24 15:55:46 -08:00
parent 9bcd84140a
commit 3ee8b17d63

View File

@ -334,7 +334,7 @@ delete_prompt() {
# Only prompt if both stdin and stdout are a tty. If either is not a tty,
# then the user may not be present, so we shouldn't bother prompting.
if tty -s && tty -s <&1; then
if tty -s && tty -s <&1 && [ "${USER}" -ne 'chrome-bot' ]; then
read -p "Would you like to delete the output directory (y/N)? " SURE
SURE="${SURE:0:1}" # Get just the first character.
else