mirror of
https://github.com/YunoHost-Apps/scrumblr_ynh.git
synced 2024-09-03 20:16:29 +02:00
Update install
This commit is contained in:
parent
f9870ad5da
commit
5d08397413
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ source /usr/share/yunohost/helpers
|
||||||
# usage: ynh_normalize_url_path path_to_normalize
|
# usage: ynh_normalize_url_path path_to_normalize
|
||||||
# | arg: url_path_to_normalize - URL path to normalize before using it
|
# | arg: url_path_to_normalize - URL path to normalize before using it
|
||||||
ynh_normalize_url_path () {
|
ynh_normalize_url_path () {
|
||||||
path=$1
|
path=$2
|
||||||
test -n "$path" || ynh_die "ynh_normalize_url_path expect a URL path as first argument and received nothing."
|
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 /
|
if [ "${path:0:1}" != "/" ]; then # If the first character is not a /
|
||||||
path="/$path" # Add / at begin of path variable
|
path="/$path" # Add / at begin of path variable
|
||||||
|
|
Loading…
Add table
Reference in a new issue