mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
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:
parent
9bcd84140a
commit
3ee8b17d63
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user