diff --git a/attuale.txt b/attuale.txt new file mode 100644 index 0000000..acafe31 --- /dev/null +++ b/attuale.txt @@ -0,0 +1 @@ +streamingcommunity.ooo diff --git a/script_link.sh b/script_link.sh index bf6795b..3134a9d 100755 --- a/script_link.sh +++ b/script_link.sh @@ -1 +1,4 @@ -giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=).*?(?=

)' | grep -oP 'https://streamingcommunity.*') ; echo -e "\n$giusto\n" +attuale=$().*?(?=

)' | grep -oP 'https://streamingcommunity.*') +echo "$nuovo" > attuale.txt +echo -e "\n$nuovo\n" diff --git a/update_link.sh b/update_link.sh index 1b2b84d..36df63d 100755 --- a/update_link.sh +++ b/update_link.sh @@ -1,9 +1,16 @@ #!/bin/bash -giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=).*?(?=

)' | grep -oP 'https://streamingcommunity.*') +attuale=$( attuale.txt + +fi + +formatted="https.//$( /var/www/html/scommunity/index.html