Skip to content

Commit d6ad8ad

Browse files
committed
feat: improve the message
1 parent f2f9467 commit d6ad8ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/r-dependent-packages/install.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ install_pak "${PAK_VERSION}"
7878

7979
# Replace the target lifecycle script
8080
echo "Set the lifecycle script for '${WHEN}'..."
81+
LIFECYCLE_SCRIPT_PATH="${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh"
8182
sed \
8283
-e "s|@ROOT@|${ROOT}|" \
8384
-e "s|@REPOS@|${REPOS//"'"/'"'}|" \
8485
-e "s|@DEPS@|${DEPS}|" \
85-
lifecycle_script.sh >"${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh"
86-
86+
lifecycle_script.sh >"${LIFECYCLE_SCRIPT_PATH}"
87+
echo "The lifecycle script is generated at '${LIFECYCLE_SCRIPT_PATH}'"
8788
echo "Done!"

0 commit comments

Comments
 (0)