Closed htartisan closed 1 year ago
$(ping -c1 $1 &>/dev/null)
I don't think we ship a ping.exe
, so that's probably Microsoft ping, so you'd need something like
$(ping //n 1 $1 &>/dev/null)
I'll assume that the problem was the expectation that Windows' ping.exe
supports the same command-line arguments as Linux' ping
.
echo "Waiting for fastbootd over TCP from Recovery, pinging $1"
until $(ping -c1 $1 &>/dev/null); do :; done
Setup
Windows 11 64 bit
defaults
Details
Bash
The script should pause at the "unitl" statement, waiting for the "ping" to succeed, and then proceed with the rest of the script/
The script hangs at the "until" statement indefinitly