mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Update PYTHONWARNINGS for Debian and Ubuntu
This commit is contained in:
committed by
Tortue Torche
parent
139ab770b1
commit
7bc538aee9
8
psu
8
psu
@ -595,8 +595,8 @@ inputs() {
|
|||||||
HTTPIE_VERIFY_SSL="yes"
|
HTTPIE_VERIFY_SSL="yes"
|
||||||
fi
|
fi
|
||||||
if [ "$HTTPIE_VERIFY_SSL" == "no" ] && [ -z "$PYTHONWARNINGS" ]; then
|
if [ "$HTTPIE_VERIFY_SSL" == "no" ] && [ -z "$PYTHONWARNINGS" ]; then
|
||||||
# Fix httpie with Ubuntu 16.04
|
# Fix httpie with Debian and Ubuntu
|
||||||
PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
||||||
fi
|
fi
|
||||||
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
|
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
|
||||||
# When the second argument is the value of the current option
|
# When the second argument is the value of the current option
|
||||||
@ -607,8 +607,8 @@ inputs() {
|
|||||||
echo_verbose "DEPRECATED: Use '--insecure' option, instead of this '$1' option"
|
echo_verbose "DEPRECATED: Use '--insecure' option, instead of this '$1' option"
|
||||||
HTTPIE_VERIFY_SSL=$(input_flag "$1" "$2" "yes no" "no")
|
HTTPIE_VERIFY_SSL=$(input_flag "$1" "$2" "yes no" "no")
|
||||||
if [ "$HTTPIE_VERIFY_SSL" == "no" ] && [ -z "$PYTHONWARNINGS" ]; then
|
if [ "$HTTPIE_VERIFY_SSL" == "no" ] && [ -z "$PYTHONWARNINGS" ]; then
|
||||||
# Fix httpie with Ubuntu 16.04
|
# Fix httpie with Debian and Ubuntu
|
||||||
PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
||||||
fi
|
fi
|
||||||
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
|
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
|
||||||
# When the second argument is the value of the current option
|
# When the second argument is the value of the current option
|
||||||
|
Reference in New Issue
Block a user