Skip to content

Commit

Permalink
fix: fix permission
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed May 12, 2024
1 parent 930dda6 commit 96252a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/r-dependent-packages/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ install_pak "${PAK_VERSION}"

# Replace the target lifecycle script
echo "Set the lifecycle script for '${WHEN}'..."
target_script="${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh"
sed \
-e "s|@ROOT@|${ROOT}|" \
-e "s|@REPOS@|${ADDITIONAL_REPOSITORIES}|" \
-e "s|@DEPS@|${DEPENDENCIES}|" \
lifecycle_script.sh >"${LIFECYCLE_SCRIPTS_DIR}/${WHEN,,}.sh"
lifecycle_script.sh >"${target_script}"
chmod +x "${target_script}"

echo "Done!"

0 comments on commit 96252a2

Please sign in to comment.