diff --git a/scripts/restore.ts b/scripts/restore.ts index d27d568..0fb38d3 100644 --- a/scripts/restore.ts +++ b/scripts/restore.ts @@ -18,7 +18,7 @@ await s3DownloadFile({ folder: R2_FOLDER, }); -execSync(`[ -d "${R2_FILE_NAME}" ] && tar -xJvf "${R2_FILE_NAME}"`, { +execSync(`[ -f "${R2_FILE_NAME}" ] && tar -xJvf "${R2_FILE_NAME}"`, { cwd: BACKUP_DIR, });