check permissions
All checks were successful
Update Child Repos / update (push) Successful in 14s

This commit is contained in:
2026-01-02 13:32:05 +01:00
parent ff3dd444c7
commit 342c165e94

View File

@@ -119,7 +119,9 @@ while IFS= read -r clone_url; do
patched_content=$(cat "${tmp_current}") patched_content=$(cat "${tmp_current}")
if [ "${current_content}" != "${patched_content}" ]; then if [ "${current_content}" != "${patched_content}" ]; then
template_permissions=$(pushd "${TEMPLATE_REPO_DIR}" >/dev/null && stat -c "%a" "${file}" 2>/dev/null || echo "644" && popd >/dev/null)
echo "${patched_content}" > "${file}" echo "${patched_content}" > "${file}"
chmod "${template_permissions}" "${file}" 2>/dev/null || true
git add "${file}" git add "${file}"
files_changed=true files_changed=true
echo "Merged updates for ${file} in ${repo_name}" echo "Merged updates for ${file} in ${repo_name}"
@@ -138,6 +140,8 @@ while IFS= read -r clone_url; do
echo "Adding new file ${file} from template to ${repo_name}" echo "Adding new file ${file} from template to ${repo_name}"
mkdir -p "$(dirname "${file}")" mkdir -p "$(dirname "${file}")"
echo "${template_content}" > "${file}" echo "${template_content}" > "${file}"
template_permissions=$(pushd "${TEMPLATE_REPO_DIR}" >/dev/null && stat -c "%a" "${file}" 2>/dev/null || echo "644" && popd >/dev/null)
chmod "${template_permissions}" "${file}" 2>/dev/null || true
git add "${file}" git add "${file}"
files_changed=true files_changed=true
fi fi