Skip to content

Instantly share code, notes, and snippets.

View PeterSuper01's full-sized avatar

黃承平 PeterSuper01

View GitHub Profile
#!/bin/bash
# 等待網路就緒
echo "⏳ 等待網路..."
until curl -fsSL --max-time 5 https://google.com &> /dev/null; do
sleep 2
done
echo "✅ 網路就緒"
# 如果已經安裝過就跳過