We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f9467 commit d6ad8adCopy full SHA for d6ad8ad
src/r-dependent-packages/install.sh
@@ -78,10 +78,11 @@ install_pak "${PAK_VERSION}"
78
79
# Replace the target lifecycle script
80
echo "Set the lifecycle script for '${WHEN}'..."
81
+LIFECYCLE_SCRIPT_PATH="${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh"
82
sed \
83
-e "s|@ROOT@|${ROOT}|" \
84
-e "s|@REPOS@|${REPOS//"'"/'"'}|" \
85
-e "s|@DEPS@|${DEPS}|" \
- lifecycle_script.sh >"${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh"
86
-
+ lifecycle_script.sh >"${LIFECYCLE_SCRIPT_PATH}"
87
+echo "The lifecycle script is generated at '${LIFECYCLE_SCRIPT_PATH}'"
88
echo "Done!"
0 commit comments