From 3ee8b17d63750628c2e0f1da14d3a9bb8516d0bf Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Mon, 24 Jan 2011 15:55:46 -0800 Subject: [PATCH] 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 --- build_image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_image b/build_image index 9674e36ab0..c53793d9ad 100755 --- a/build_image +++ b/build_image @@ -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