From fee4272eac097f6ff96955b8d420b8ff170d6bd5 Mon Sep 17 00:00:00 2001 From: JimboJoe Date: Thu, 11 May 2017 23:01:49 +0200 Subject: [PATCH] Fix ynh_local_curl (#306) POST arguments aren't given to the request if quotes are used. --- data/helpers.d/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index 9328936e5..8ff9e5791 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -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