[coreboot-gerrit] New patch to review for coreboot: a8d6a83 board_status.sh: move show_help()
David Hendricks (dhendrix@chromium.org)
gerrit at coreboot.org
Wed Nov 13 03:26:25 CET 2013
David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4048
-gerrit
commit a8d6a8363155172b6981dec9cdb42b96ea0bc475
Author: David Hendricks <dhendrix at chromium.org>
Date: Tue Nov 12 16:49:45 2013 -0800
board_status.sh: move show_help()
This is really only a cosmetic change, but is intended to make it
slightly easier to remember to update the help menu whenever
options change.
Change-Id: I58b5012309229d08da138a01c7cd1c5096423179
Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
util/board_status/board_status.sh | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 689eda9..84319f1 100644
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -18,22 +18,6 @@ UPLOAD_RESULTS=0
LOCAL=0
REMOTE=1
-show_help() {
- echo "Usage:
- ${0} <option>
-
-Options
- -h
- Show this message.
- -C
- Clobber temporary output when finished. Useful for debugging.
- -r <host>
- Obtain machine information from remote host (using ssh).
- -u
- Upload results to coreboot.org.
-"
-}
-
# test a command
#
# $1: test command on remote host (0=no, 1=yes)
@@ -86,6 +70,22 @@ cmd()
exit $EXIT_FAILURE
}
+show_help() {
+ echo "Usage:
+ ${0} <option>
+
+Options
+ -h
+ Show this message.
+ -C
+ Clobber temporary output when finished. Useful for debugging.
+ -r <host>
+ Obtain machine information from remote host (using ssh).
+ -u
+ Upload results to coreboot.org.
+"
+}
+
while getopts "Chr:u" opt; do
case "$opt" in
h)
More information about the coreboot-gerrit
mailing list