Browse Source

x230_skulls.sh: add verbose switch

the update function already uses it
pull/102/head
Martin Kepplinger 5 years ago
parent
commit
bf47170195
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      x230/x230_skulls.sh

+ 6
- 1
x230/x230_skulls.sh View File

@ -8,6 +8,7 @@ source functions.sh
have_input_image=0 have_input_image=0
request_update=0 request_update=0
verbose=0
usage() usage()
{ {
@ -21,10 +22,11 @@ usage()
echo "Options:" echo "Options:"
echo " -i path to the image to flash" echo " -i path to the image to flash"
echo " -U update: check for a new Skulls package online" echo " -U update: check for a new Skulls package online"
echo " -v verbose output. prints more information"
echo " -h print this help text" echo " -h print this help text"
} }
args=$(getopt -o i:hU -- "$@")
args=$(getopt -o i:hUv -- "$@")
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
usage usage
exit 1 exit 1
@ -46,6 +48,9 @@ do
-U) -U)
request_update=1 request_update=1
;; ;;
-v)
verbose=1
;;
--) --)
shift shift
break break


Loading…
Cancel
Save