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:
parent
6fde558788
commit
7dc17c2090
1 changed files with 0 additions and 17 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue