This commit is contained in:
waner
2026-05-18 15:10:40 +08:00
parent 60002f6c31
commit 5891a510c7
22 changed files with 737 additions and 167 deletions
@@ -87,7 +87,9 @@ restore_files() {
local source_file="${PAYLOAD_DIR}/${entry_path}"
[[ -f "${source_file}" ]] || fail "restore source file not found: ${entry_path}" "FILE"
mkdir -p "$(dirname "${restore_path}")"
cp -f "${source_file}" "${restore_path}"
if ! cp -f "${source_file}" "${restore_path}" >> "${LOG_FILE}" 2>&1; then
fail "restore file failed: ${restore_path}" "FILE"
fi
log "restored file: ${restore_path}"
done < "${FILES_PLAN}"
}