fix
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user