From f742bdf83217519339a4cd56710c2fabe2eeee9d Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 6 Feb 2023 13:26:36 +0100 Subject: [PATCH] [fix] Allow to do replace string with @ --- helpers/string | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/string b/helpers/string index 4dd5c0b4b..dc1658e3d 100644 --- a/helpers/string +++ b/helpers/string @@ -48,7 +48,7 @@ ynh_replace_string() { ynh_handle_getopts_args "$@" set +o xtrace # set +x - local delimit=@ + local delimit=$'\001' # Escape the delimiter if it's in the string. match_string=${match_string//${delimit}/"\\${delimit}"} replace_string=${replace_string//${delimit}/"\\${delimit}"}