From 0524c499de6112c40eaf5acaf1941de3f0dbf9e3 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 12 Feb 2017 10:36:36 +0100 Subject: [PATCH] Fix ynh_normalize_url_path Warning: yunohost.hook - [902.1] ./.fonctions: line 4: $2: unbound variable --- scripts/.fonctions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.fonctions b/scripts/.fonctions index a882c0b..f7f179c 100644 --- a/scripts/.fonctions +++ b/scripts/.fonctions @@ -1,7 +1,7 @@ #!/bin/bash ynh_normalize_url_path () { - path=$2 + path=$1 test -n "$path" || ynh_die "ynh_normalize_url_path expect a URL path as first argument and received nothing." if [ "${path:0:1}" != "/" ]; then # If the first character is not a / path="/$path" # Add / at begin of path variable