diff --git a/dsv/dsv b/dsv/dsv index e24594c..a08cf4b 100755 --- a/dsv/dsv +++ b/dsv/dsv @@ -2,8 +2,8 @@ # # dsv - Improved data sheet viewer # -# Written 2010-2014, 2016 by Werner Almesberger -# Copyright 2010-2014, 2016 Werner Almesberger +# Written 2010-2014, 2016, 2018 by Werner Almesberger +# Copyright 2010-2014, 2016, 2018 Werner Almesberger # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -33,8 +33,9 @@ usage() echo "usage: $0 [-p] [-u] " 1>&2 echo " $0 help" 1>&2 echo " $0 [ls]" 1>&2 - echo " $0 setup ..." 1>&2 + echo " $0 [-c] setup ..." 1>&2 echo 1>&2 + echi " -c don't check server certificates" 1>&2 echo " -p show the path instead of displaying the file " 1>&2 echo " -u show source URL instead of displaying the file " 1>&2 exit 1 @@ -43,7 +44,7 @@ usage() do_wget() { - wget -nv -U "dsv/1.0" "$@" + wget -nv -U "dsv/1.0" $wget_opts "$@" } @@ -215,9 +216,12 @@ search() path=false show_url=false +wget_opts= while true; do case "$1" in + -c) wget_opts=--no-check-certificate + shift;; -p) path=true shift;; -u) show_url=true