From 79413c6eeae4b3917307f5a07526a0c25767c485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 13 Jul 2024 13:14:32 +0200 Subject: [PATCH] Change url fix --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 1fcfdf5..2f20db9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -19,10 +19,10 @@ _configure_framagames() { --match_string="framanav: true" \ --replace_string="framanav: false" - # %/ is here to prevent double slash + # %/ is here to prevent double slash when path is / ynh_replace_string --target_file="$install_dir/sources/config/env.js" \ - --match_string=": '${old_path:-}/'," \ - --replace_string=": '${path%/}/'," + --match_string=" basepath:.*" \ + --replace_string=" basepath: '${path%/}/', wrong_path: false" } _build_install_framagames() {