From bf47170195e5887847ffc88aa7ade45aa3e6ceae Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Wed, 15 May 2019 11:25:48 +0200 Subject: [PATCH] x230_skulls.sh: add verbose switch the update function already uses it --- x230/x230_skulls.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x230/x230_skulls.sh b/x230/x230_skulls.sh index b92557b..733ffb6 100755 --- a/x230/x230_skulls.sh +++ b/x230/x230_skulls.sh @@ -8,6 +8,7 @@ source functions.sh have_input_image=0 request_update=0 +verbose=0 usage() { @@ -21,10 +22,11 @@ usage() echo "Options:" echo " -i path to the image to flash" echo " -U update: check for a new Skulls package online" + echo " -v verbose output. prints more information" echo " -h print this help text" } -args=$(getopt -o i:hU -- "$@") +args=$(getopt -o i:hUv -- "$@") if [ $? -ne 0 ] ; then usage exit 1 @@ -46,6 +48,9 @@ do -U) request_update=1 ;; + -v) + verbose=1 + ;; --) shift break