From 4d4935f1502f16620c67f2c40191bce2d4d693c8 Mon Sep 17 00:00:00 2001 From: Rocket Date: Tue, 18 Jun 2024 17:30:38 -0700 Subject: [PATCH 1/4] Add warning --- template-only-bin/rename-template-app | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template-only-bin/rename-template-app b/template-only-bin/rename-template-app index 7bb2bba..dd12f91 100755 --- a/template-only-bin/rename-template-app +++ b/template-only-bin/rename-template-app @@ -83,3 +83,7 @@ for include_path in "${include_paths[@]}"; do mv "${include_path}" "${new_include_path}" fi done + +echo +echo "===> Review all changes carefully using 'git diff' before committing!" +echo \ No newline at end of file From a701691df568804142e6a61d4e304d993ae3f896 Mon Sep 17 00:00:00 2001 From: Rocket Date: Tue, 18 Jun 2024 17:34:46 -0700 Subject: [PATCH 2/4] Add debug lines --- template-only-bin/download-and-install-template | 2 +- template-only-bin/install-template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template-only-bin/download-and-install-template b/template-only-bin/download-and-install-template index 19be463..bad7ec6 100755 --- a/template-only-bin/download-and-install-template +++ b/template-only-bin/download-and-install-template @@ -29,7 +29,7 @@ git checkout "$target_version" cd - &> /dev/null echo "Installing ${template_name}..." -curl "https://raw.githubusercontent.com/navapbc/${template_name}/rocket/update-template-only-bin-scripts/template-only-bin/install-template" | bash -s -- "${template_name}" "${app_name}" +curl "https://raw.githubusercontent.com/navapbc/${template_name}/rocket/rename-warning/template-only-bin/install-template" | bash -s -- "${template_name}" "${app_name}" echo "Storing template version in a file..." cd "${template_name}" diff --git a/template-only-bin/install-template b/template-only-bin/install-template index ecf201e..1f823c2 100755 --- a/template-only-bin/install-template +++ b/template-only-bin/install-template @@ -23,7 +23,7 @@ cd "${template_name}" if [ "${template_short_name}" != "${app_name}" ]; then echo "Modifying template to use ${app_name} instead of ${template_short_name}..." - curl "https://raw.githubusercontent.com/navapbc/${template_name}/rocket/update-template-only-bin-scripts/template-only-bin/rename-template-app" | bash -s -- "${template_short_name}" "${app_name}" + curl "https://raw.githubusercontent.com/navapbc/${template_name}/rocket/rename-warning/template-only-bin/rename-template-app" | bash -s -- "${template_short_name}" "${app_name}" fi # Note: Keep this list in sync with the files listed in update-template From 11d009c0b88ec24ec51ba2db41a5d176b55cec69 Mon Sep 17 00:00:00 2001 From: Rocket Date: Tue, 18 Jun 2024 17:43:03 -0700 Subject: [PATCH 3/4] Remove accidentally hard coding --- template-only-bin/download-and-install-template | 2 +- template-only-bin/install-template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template-only-bin/download-and-install-template b/template-only-bin/download-and-install-template index bad7ec6..b3a83ae 100755 --- a/template-only-bin/download-and-install-template +++ b/template-only-bin/download-and-install-template @@ -29,7 +29,7 @@ git checkout "$target_version" cd - &> /dev/null echo "Installing ${template_name}..." -curl "https://raw.githubusercontent.com/navapbc/${template_name}/rocket/rename-warning/template-only-bin/install-template" | bash -s -- "${template_name}" "${app_name}" +curl "https://raw.githubusercontent.com/navapbc/${template_name}/main/template-only-bin/install-template" | bash -s -- "${template_name}" "${app_name}" echo "Storing template version in a file..." cd "${template_name}" diff --git a/template-only-bin/install-template b/template-only-bin/install-template index 1f823c2..a1184e1 100755 --- a/template-only-bin/install-template +++ b/template-only-bin/install-template @@ -23,7 +23,7 @@ cd "${template_name}" if [ "${template_short_name}" != "${app_name}" ]; then echo "Modifying template to use ${app_name} instead of ${template_short_name}..." - curl "https://raw.githubusercontent.com/navapbc/${template_name}/rocket/rename-warning/template-only-bin/rename-template-app" | bash -s -- "${template_short_name}" "${app_name}" + curl "https://raw.githubusercontent.com/navapbc/${template_name}/main/template-only-bin/rename-template-app" | bash -s -- "${template_short_name}" "${app_name}" fi # Note: Keep this list in sync with the files listed in update-template From f6841bdf981a810ba13290e2b44ea5ed4a0ef7cb Mon Sep 17 00:00:00 2001 From: Rocket Date: Thu, 20 Jun 2024 09:59:19 -0700 Subject: [PATCH 4/4] Add newline --- template-only-bin/rename-template-app | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template-only-bin/rename-template-app b/template-only-bin/rename-template-app index dd12f91..3e18089 100755 --- a/template-only-bin/rename-template-app +++ b/template-only-bin/rename-template-app @@ -86,4 +86,4 @@ done echo echo "===> Review all changes carefully using 'git diff' before committing!" -echo \ No newline at end of file +echo