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:
parent
139ab770b1
commit
7bc538aee9
8
psu
8
psu
@ -595,8 +595,8 @@ inputs() {
|
||||
HTTPIE_VERIFY_SSL="yes"
|
||||
fi
|
||||
if [ "$HTTPIE_VERIFY_SSL" == "no" ] && [ -z "$PYTHONWARNINGS" ]; then
|
||||
# Fix httpie with Ubuntu 16.04
|
||||
PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
||||
# Fix httpie with Debian and Ubuntu
|
||||
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
||||
fi
|
||||
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
|
||||
# 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"
|
||||
HTTPIE_VERIFY_SSL=$(input_flag "$1" "$2" "yes no" "no")
|
||||
if [ "$HTTPIE_VERIFY_SSL" == "no" ] && [ -z "$PYTHONWARNINGS" ]; then
|
||||
# Fix httpie with Ubuntu 16.04
|
||||
PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
||||
# Fix httpie with Debian and Ubuntu
|
||||
export PYTHONWARNINGS="ignore:Unverified HTTPS request"
|
||||
fi
|
||||
if [ -n "$2" ] && [[ ! $2 =~ ^-.+$ ]] ; then
|
||||
# When the second argument is the value of the current option
|
||||
|
Loading…
x
Reference in New Issue
Block a user