Initial commit

This commit is contained in:
2026-09-05 02:13:35 +08:00
commit b85e5c4a8b
6 changed files with 91 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# wait until wsl environment is ready
APP_DIR="$(dirname "$0")"
WSL_INTEROP_READY="$APP_DIR/wsl-interop-ready"
INTERVAL=0.5
TIMEOUT=$1
SECONDS=0
until $WSL_INTEROP_READY; do
if [ "$TIMEOUT" ] && (( SECONDS >= "$TIMEOUT" )); then
echo "Timeout waiting for WSL socket dir" >&2
exit 1
fi
sleep $INTERVAL
done