Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 6, 2024
1 parent 9ccd016 commit 227d0e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pi-image/update-prompt/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
Expand Down

0 comments on commit 227d0e1

Please sign in to comment.