From 227d0e1ecc49c55a375819abea2e9ed2ca5b58f4 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Tue, 6 Feb 2024 17:54:47 +0000 Subject: [PATCH] fix --- pi-image/update-prompt/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pi-image/update-prompt/main.js b/pi-image/update-prompt/main.js index e2870ca..dac1ca5 100644 --- a/pi-image/update-prompt/main.js +++ b/pi-image/update-prompt/main.js @@ -154,7 +154,11 @@ async function runPrompt() { return runPrompt() } else { fs.writeFileSync('/tmp/satellite-version-selection', answer.url) - fs.unlinkSync('/tmp/satellite-version-selection-name') + try { + fs.unlinkSync('/tmp/satellite-version-selection-name') + } catch (e) { + // Ignore + } } } else if (!answer.ref || answer.ref === 'cancel') { console.error('No version was selected!')