authftp: support des mots de passe avec des caractères spéciaux
This commit is contained in:
parent
dfdfd59eae
commit
28d42b00f3
6
authftp
6
authftp
|
@ -84,6 +84,7 @@ read_value -i "Entrez le chemin" path "$4" N
|
||||||
|
|
||||||
if [ -n "$lftp" ]; then
|
if [ -n "$lftp" ]; then
|
||||||
if [ -n "$noproxy" ]; then
|
if [ -n "$noproxy" ]; then
|
||||||
|
export LFTP_PASSWORD="$password"
|
||||||
if [ -n "$sftp" ]; then
|
if [ -n "$sftp" ]; then
|
||||||
url="sftp://$host/$path"
|
url="sftp://$host/$path"
|
||||||
hostkeyfailed_apropos "$login@$host"
|
hostkeyfailed_apropos "$login@$host"
|
||||||
|
@ -92,12 +93,13 @@ if [ -n "$lftp" ]; then
|
||||||
fi
|
fi
|
||||||
exec lftp "${options[@]}" -e "\
|
exec lftp "${options[@]}" -e "\
|
||||||
set ssl:verify-certificate $verify_certificate
|
set ssl:verify-certificate $verify_certificate
|
||||||
open -u $login,$password $url"
|
open -u $login --env-password $url"
|
||||||
else
|
else
|
||||||
|
export LFTP_PASSWORD="${password}@${my_password}"
|
||||||
url="ftp://$AUTHFTP_PROXY_HOST/$path"
|
url="ftp://$AUTHFTP_PROXY_HOST/$path"
|
||||||
exec lftp "${options[@]}" -e "\
|
exec lftp "${options[@]}" -e "\
|
||||||
set ssl:verify-certificate $verify_certificate
|
set ssl:verify-certificate $verify_certificate
|
||||||
open -u ${login}@${my_login}@${host},${password}@${my_password} $url"
|
open -u ${login}@${my_login}@${host} --env-password $url"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -n "$noproxy" ]; then
|
if [ -n "$noproxy" ]; then
|
||||||
|
|
Loading…
Reference in New Issue