From 45acf0d8bd600fbdd59241f891a36f19aa9393f4 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Wed, 21 Mar 2018 15:33:41 +0800 Subject: [PATCH] add reconfirm --- daemon-signin.fish | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/daemon-signin.fish b/daemon-signin.fish index 06542a6..d047d65 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 -- GitLab