updated urlencode.sh

pull/16/head
Hari Sekhon 7 months ago
parent 819128de1b
commit 2c7879f100

@ -29,4 +29,7 @@ if type -P perl &>/dev/null &&
elif type -p python3 &>/dev/null && elif type -p python3 &>/dev/null &&
python3 -c 'from urllib.parse import quote_plus'; then python3 -c 'from urllib.parse import quote_plus'; then
python3 -c 'from urllib.parse import quote_plus; import sys; print(quote_plus(sys.stdin.read().rstrip("\n").rstrip("\r")))' python3 -c 'from urllib.parse import quote_plus; import sys; print(quote_plus(sys.stdin.read().rstrip("\n").rstrip("\r")))'
else
echo "Neither Perl URI::Escape nor Python3 with UrlLib.Parse are available" >&2
exit 1
fi fi

Loading…
Cancel
Save