From 997388dc7959e3046fefd3f3308802f9d3618868 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 25 Jun 2024 14:15:51 +0200 Subject: [PATCH] helpers2.1: fix __PATH__/ handling --- helpers/helpers.v2.1.d/templating | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/helpers.v2.1.d/templating b/helpers/helpers.v2.1.d/templating index ffd161278..dc7a090a2 100644 --- a/helpers/helpers.v2.1.d/templating +++ b/helpers/helpers.v2.1.d/templating @@ -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