Update utils

This commit is contained in:
Kayou 2019-02-09 23:13:48 +01:00 committed by GitHub
parent 6ba12bb9ae
commit a0dfae269f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,8 +258,8 @@ ynh_setup_source () {
ynh_local_curl () {
# Define url of page to curl
path_url=$(ynh_normalize_url_path $path_url)
local_page=$(ynh_normalize_url_path $1)
full_path=$path_url$local_page
local local_page=$(ynh_normalize_url_path $1)
local full_path=$path_url$local_page
if [ "${path_url}" == "/" ]; then
full_path=$local_page