1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Remove no longer needed helper backport

Introduced in ynh 2.6.1

Ref https://github.com/YunoHost/yunohost/pull/234
This commit is contained in:
Jocelyn Delalande 2018-12-20 07:32:05 +01:00
parent 6fde558788
commit 7dc17c2090

View file

@ -58,20 +58,3 @@ configure_supervisor () {
sudo install -o root -g root -m 644 \
../conf/supervisord.conf /etc/supervisor/conf.d/ihatemoney.conf
}
### Backported helpers (from testing)
# Add path
ynh_normalize_url_path () {
path_url=$1
test -n "$path_url" || ynh_die "ynh_normalize_url_path expect a URL path as first argument and received nothing."
if [ "${path_url:0:1}" != "/" ]; then # If the first character is not a /
path_url="/$path_url" # Add / at begin of path variable
fi
if [ "${path_url:${#path_url}-1}" == "/" ] && [ ${#path_url} -gt 1 ]; then # If the last character is a / and that not the only character.
path_url="${path_url:0:${#path_url}-1}" # Delete the last character
fi
echo $path_url
}