From f4071b371fe99dcd550bfc35aefc8c76d41609d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 12 Jul 2024 18:12:56 +0200 Subject: [PATCH] Fix root install --- scripts/_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 7f86dc3..45886c8 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -19,9 +19,10 @@ _configure_framagames() { --match_string="framanav: true" \ --replace_string="framanav: false" + # %/ is here to prevent double slash ynh_replace_string --target_file="$install_dir/sources/config/env.js" \ --match_string=": '/'," \ - --replace_string=": '$path/'," + --replace_string=": '${path%/}/'," } _build_install_framagames() {