mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix ynh_local_curl (#306)
POST arguments aren't given to the request if quotes are used.
This commit is contained in:
parent
0877da9438
commit
fee4272eac
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ ynh_local_curl () {
|
||||||
if [ -n "$POST_data" ]
|
if [ -n "$POST_data" ]
|
||||||
then
|
then
|
||||||
# Add --data arg and remove the last character, which is an unecessary '&'
|
# 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
|
fi
|
||||||
|
|
||||||
# Curl the URL
|
# Curl the URL
|
||||||
|
|
Loading…
Add table
Reference in a new issue