Skip to content

Commit

Permalink
feat: improve the message
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Sep 11, 2024
1 parent f2f9467 commit d6ad8ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/r-dependent-packages/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

0 comments on commit d6ad8ad

Please sign in to comment.