1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 10:31:54 +02:00

dsv/dsv: new option -c to --no-check-certificate

This commit is contained in:
Werner Almesberger 2018-03-26 06:24:20 -03:00
parent 09d27e5b66
commit 1bb97dd664

12
dsv/dsv
View File

@ -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] <component>" 1>&2
echo " $0 help" 1>&2
echo " $0 [ls]" 1>&2
echo " $0 setup <info-file> ..." 1>&2
echo " $0 [-c] setup <info-file> ..." 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