Use a better way to wait for the network.

This commit is contained in:
Emre AKYÜZ 2023-11-19 02:09:54 +03:00 committed by GitHub
parent 96b997e8cf
commit 2734857902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/bin/dash
sleep 16
while ! ping -c 1 9.9.9.9 > /dev/null 2>&1; do sleep 0.5; done
DATA_DIR="$HOME/.cache/youtube_channels"
CHANNEL_LIST="$HOME/.local/share/channels.txt"