Fix ynh_local_curl (#306)

POST arguments aren't given to the request if quotes are used.
This commit is contained in:
JimboJoe 2017-05-11 23:01:49 +02:00 committed by Alexandre Aubin
parent 0877da9438
commit fee4272eac

View file

@ -161,7 +161,7 @@ ynh_local_curl () {
if [ -n "$POST_data" ]
then
# Add --data arg and remove the last character, which is an unecessary '&'
POST_data="--data \"${POST_data::-1}\""
POST_data="--data ${POST_data::-1}"
fi
# Curl the URL