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:
parent
09d27e5b66
commit
1bb97dd664
12
dsv/dsv
12
dsv/dsv
@ -2,8 +2,8 @@
|
|||||||
#
|
#
|
||||||
# dsv - Improved data sheet viewer
|
# dsv - Improved data sheet viewer
|
||||||
#
|
#
|
||||||
# Written 2010-2014, 2016 by Werner Almesberger
|
# Written 2010-2014, 2016, 2018 by Werner Almesberger
|
||||||
# Copyright 2010-2014, 2016 Werner Almesberger
|
# Copyright 2010-2014, 2016, 2018 Werner Almesberger
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# 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 "usage: $0 [-p] [-u] <component>" 1>&2
|
||||||
echo " $0 help" 1>&2
|
echo " $0 help" 1>&2
|
||||||
echo " $0 [ls]" 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
|
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 " -p show the path instead of displaying the file " 1>&2
|
||||||
echo " -u show source URL instead of displaying the file " 1>&2
|
echo " -u show source URL instead of displaying the file " 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -43,7 +44,7 @@ usage()
|
|||||||
|
|
||||||
do_wget()
|
do_wget()
|
||||||
{
|
{
|
||||||
wget -nv -U "dsv/1.0" "$@"
|
wget -nv -U "dsv/1.0" $wget_opts "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -215,9 +216,12 @@ search()
|
|||||||
|
|
||||||
path=false
|
path=false
|
||||||
show_url=false
|
show_url=false
|
||||||
|
wget_opts=
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
-c) wget_opts=--no-check-certificate
|
||||||
|
shift;;
|
||||||
-p) path=true
|
-p) path=true
|
||||||
shift;;
|
shift;;
|
||||||
-u) show_url=true
|
-u) show_url=true
|
||||||
|
Loading…
Reference in New Issue
Block a user