Skip to content

Commit

Permalink
[CP-3128] flashImageToDevice - update
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarski committed Oct 10, 2024
1 parent be42a48 commit 6e7cb74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ class MacDeviceFlashService implements IDeviceFlash {
chmod +x "${scriptPath}"
`)
await execPromise(
`osascript -e 'tell application "Terminal" to do script "\\"${scriptPath}\\" -t \\"${this.flashStatusTempFilePath}\\" -i \\"${imagePath}\\" -d \\"${device}\\""'`
`osascript -e 'tell application "Terminal" to do script "\\"${scriptPath}\\" -i \\"${imagePath}\\" -d \\"${device}\\" -s \\"${this.flashStatusTempFilePath}\\""'`
)
}

async waitForFlashCompletion(
option: waitForFlashCompletionOption = {}
): Promise<boolean> {
const { intervalAttemptsLeft = 20, intervalTime = 1000, signal } = option
const { intervalAttemptsLeft = 60, intervalTime = 5000, signal } = option

if (intervalAttemptsLeft <= 0 || signal?.aborted) {
throw new Error()
Expand Down

0 comments on commit 6e7cb74

Please sign in to comment.