Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

setup_machine: Fix `(( waited++ ))` causing exit on first iteration (#199)

zqxwce4b052cc1ca9a
diff --git a/scripts/setup_machine.sh b/scripts/setup_machine.sh
index bd100139..ce42ca11 100755
--- a/scripts/setup_machine.sh
+++ b/scripts/setup_machine.sh
@@ -89,7 +89,7 @@ load_device_identity() {
break
fi
sleep 1
- (( waited++ ))
+ (( ++waited ))
done
[[ -f "$prediction_file" ]] || die "Missing ${prediction_file}. Rebuild and run make boot_dfu to generate it."