mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: fix __PATH__/ handling
This commit is contained in:
parent
9982a77582
commit
997388dc79
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ _ynh_replace_vars() {
|
|||
|
||||
# Specific trick to make sure that __PATH__/ doesn't end up in "//" if $path=/
|
||||
if [[ "${path:-}" == "/" ]] && grep -q '__PATH__/' $file; then
|
||||
sed --in-place "s@__PATH__/@${path%/}@g" "$file"
|
||||
sed --in-place "s@__PATH__/@/@g" "$file"
|
||||
fi
|
||||
|
||||
# Do the replacement
|
||||
|
|
Loading…
Add table
Reference in a new issue