From 97ddef9d05464a742141a3466ab00df7ea54ad39 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Tue, 27 Jan 2026 11:05:49 +0100 Subject: [PATCH] Updates --- scripts/restore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, });