mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
build_image: use string comparison for comparing strings
BUG=n0ne TEST=./build_image and see it fail and ask me a question, instead of death Change-Id: I27f7ac71ce74ff711e8b152ee202121d518045cd Review URL: http://codereview.chromium.org/6417001
This commit is contained in:
parent
3cb5eb045c
commit
23bc6ca892
@ -357,7 +357,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 && [ "${USER}" -ne 'chrome-bot' ]; then
|
||||
if tty -s && tty -s <&1 && [ "${USER}" != '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