From 6900651852d68d2765ec4fa3d3dce77e0fd39166 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 8 Mar 2025 10:45:20 +0200 Subject: [PATCH] Fix license --- deploy_new_python_project.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy_new_python_project.sh b/deploy_new_python_project.sh index 1a63083..bc5477a 100755 --- a/deploy_new_python_project.sh +++ b/deploy_new_python_project.sh @@ -26,9 +26,9 @@ function usage() { AUTHOR_EMAIL="${USER}@$(hostname -f)" FORGEJO_INSTANCE='' FORGEJO_TOKEN='' -# shellcheck disable=SC1090 if [ -e "$(dirname "${0}")/defaults" ] then + # shellcheck disable=SC1091 source "$(dirname "${0}")/defaults" fi while [ $# -gt 0 ] @@ -119,7 +119,7 @@ mkdir -p "${DEPLOYMENT_PATH}" script_path=$(dirname "${0}") cp "${script_path}/skeleton" "${destination_path}" -rfp if [ -z "${LICENSE_URL}" ]; then - case "${license}" in + case "${LICENSE}" in "GPLv3") LICENSE_URL="https://www.gnu.org/licenses/gpl-3.0.txt" ;; @@ -127,7 +127,7 @@ if [ -z "${LICENSE_URL}" ]; then LICENSE_URL="https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt" ;; "GPLv1"|"GPL") - licence_url="https://www.gnu.org/licenses/old-licenses/gpl-1.0.txt" + LICENSE_URL="https://www.gnu.org/licenses/old-licenses/gpl-1.0.txt" ;; *) echo "Warning! Put the license text in the file ${destination_path}/LICENSE or pass the URL with the --license-url option"