Kuang-che Wu | 88875db | 2017-07-20 10:47:53 +0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | # old |
| 7 | export DIALOG_OK=0 |
| 8 | # new |
| 9 | export DIALOG_EXTRA=1 |
| 10 | # skip |
| 11 | export DIALOG_CANCEL=125 |
| 12 | # abort |
Kuang-che Wu | 0476d1f | 2019-03-04 19:27:01 +0800 | [diff] [blame] | 13 | export DIALOG_ESC=128 |
Kuang-che Wu | 88875db | 2017-07-20 10:47:53 +0800 | [diff] [blame] | 14 | |
| 15 | TEXT="$BISECT_REV |
| 16 | What is current behavior? |
| 17 | |
| 18 | [old]: current behavior is as same as old version |
| 19 | |
| 20 | [new]: current behavior is as same as new version |
| 21 | |
| 22 | [skip]: this version is neither old nor new, or unable to tell temporarily. |
| 23 | |
| 24 | If you want to abort bisection, press [Esc] key. |
| 25 | " |
| 26 | |
| 27 | # show dialog on tty, because bisector will capture and hide stdout and stderr. |
| 28 | export DIALOG_TTY=1 |
| 29 | dialog --ok-label old --extra-button --extra-label new --cancel-label skip --yesno "$TEXT" 20 60 |