mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix ynh_local_curl
This commit is contained in:
parent
519e1c3bfe
commit
6ba12bb9ae
1 changed files with 9 additions and 1 deletions
|
@ -257,7 +257,15 @@ ynh_setup_source () {
|
||||||
# | arg: ... - (Optionnal) More POST keys and values
|
# | arg: ... - (Optionnal) More POST keys and values
|
||||||
ynh_local_curl () {
|
ynh_local_curl () {
|
||||||
# Define url of page to curl
|
# Define url of page to curl
|
||||||
local full_page_url=https://localhost$path_url$1
|
path_url=$(ynh_normalize_url_path $path_url)
|
||||||
|
local_page=$(ynh_normalize_url_path $1)
|
||||||
|
full_path=$path_url$local_page
|
||||||
|
|
||||||
|
if [ "${path_url}" == "/" ]; then
|
||||||
|
full_path=$local_page
|
||||||
|
fi
|
||||||
|
|
||||||
|
local full_page_url=https://localhost$full_path
|
||||||
|
|
||||||
# Concatenate all other arguments with '&' to prepare POST data
|
# Concatenate all other arguments with '&' to prepare POST data
|
||||||
local POST_data=""
|
local POST_data=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue