diff --git a/daemon-signin.fish b/daemon-signin.fish index 06542a6d7975a34cc2ecd69850f55dd613e65c3a..d047d654978ea73df7dd315d94f9ee5ee792cbb9 100755 --- a/daemon-signin.fish +++ b/daemon-signin.fish @@ -13,6 +13,11 @@ set _audio_player "mpg123" set tmpfl (mktemp) +function reconfirm + curl "$_url" 2>/dev/null | grep "<p class='success-tip'>æš‚æ— ç¾åˆ°å¼€å¯</p>" + and mpg123 signin.mp3 +end + while true date curl "$_url" 2>/dev/null > $tmpfl @@ -22,7 +27,8 @@ while true continue end if not grep "<p class='success-tip'>æš‚æ— ç¾åˆ°å¼€å¯</p>" $tmpfl - mpg123 signin.mp3 + reconfirm + #mpg123 signin.mp3 end sleep 5 end