From 2aa1549499183f32fb30edb05cb1a596e8b7624b Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 19 Jan 2024 15:12:08 +0200 Subject: [PATCH] Replace hashes with underscores --- deploy_new_python_project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy_new_python_project.sh b/deploy_new_python_project.sh index d4fe111..083cab0 100755 --- a/deploy_new_python_project.sh +++ b/deploy_new_python_project.sh @@ -50,7 +50,7 @@ do ;; "--project-codename"|"-p") shift - PROJECT_CODENAME="${1}" + PROJECT_CODENAME="${1//-/_}" shift ;; "--version"|"-v") @@ -134,4 +134,4 @@ do sed -i "s/__url__/${URL}/g" "${file}" sed -i "s/__license__/${LICENSE}/g" "${file}" sed -i "s/__description__/${DESCRIPTION}/g" "${file}" -done <<< "$(find "${destination_path}/" -type f)" \ No newline at end of file +done <<< "$(find "${destination_path}/" -type f)"