diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d226be9..8e99099c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.40.3] - 2025-06-16 ### Fixed diff --git a/tools/squash-fs.js b/tools/squash-fs.js index 77949b70..4f7f3a7f 100644 --- a/tools/squash-fs.js +++ b/tools/squash-fs.js @@ -30,6 +30,11 @@ const { execSync } = require('child_process'); // Create a temporary directory const tempDir = fs.mkdtempSync('squash-fs-'); +// delete existing out file +if (fs.existsSync(outFile)) { + fs.unlinkSync(outFile); +} + // Unzip the file execSync(`unzip ${inFile} -d ${tempDir}`);