From d6ad8adf2b42ff9ed14716494f136cee7aaec4ef Mon Sep 17 00:00:00 2001 From: eitsupi Date: Wed, 11 Sep 2024 22:35:11 +0900 Subject: [PATCH] feat: improve the message --- src/r-dependent-packages/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/r-dependent-packages/install.sh b/src/r-dependent-packages/install.sh index 1fa0384..4eb8955 100644 --- a/src/r-dependent-packages/install.sh +++ b/src/r-dependent-packages/install.sh @@ -78,10 +78,11 @@ install_pak "${PAK_VERSION}" # Replace the target lifecycle script echo "Set the lifecycle script for '${WHEN}'..." +LIFECYCLE_SCRIPT_PATH="${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh" sed \ -e "s|@ROOT@|${ROOT}|" \ -e "s|@REPOS@|${REPOS//"'"/'"'}|" \ -e "s|@DEPS@|${DEPS}|" \ - lifecycle_script.sh >"${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh" - + lifecycle_script.sh >"${LIFECYCLE_SCRIPT_PATH}" +echo "The lifecycle script is generated at '${LIFECYCLE_SCRIPT_PATH}'" echo "Done!"