From 551e69f4122f7f76d61a436f2b949e0210cc6da9 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 25 Sep 2024 13:48:36 +0300 Subject: [PATCH] Fix replacing URL --- deploy_new_python_project.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy_new_python_project.sh b/deploy_new_python_project.sh index 4aede46..c19b976 100755 --- a/deploy_new_python_project.sh +++ b/deploy_new_python_project.sh @@ -134,7 +134,8 @@ do sed -i "s/__authoring_date__/${AUTHORING_DATE}/g" "${file}" sed -i "s/__project_name__/${PROJECT_NAME}/g" "${file}" sed -i "s/__version__/${VERSION}/g" "${file}" - sed -i "s/__url__/${URL}/g" "${file}" + escape_url=$(echo "${URL}" | sed 's_/_\\/_g') + sed -i "s/__url__/${escape_url}/g" "${file}" sed -i "s/__license__/${LICENSE}/g" "${file}" sed -i "s/__description__/${DESCRIPTION}/g" "${file}" done <<< "$(find "${destination_path}/" -type f)"