10 lines
334 B
Bash
Executable File
10 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
attuale=$(<$PWD/attuale.txt)
|
|
nuovo=$(curl --no-progress-meter -L $attuale | sed -n 's/.*\(https:\/\/cdn\.streamingcommunity\.[^ ]*images[^ ]*\).*/\1/p' | grep -oP 'streamingcommunity\.\w+(\.\w+)?')
|
|
if [ "$attuale" != "$nuovo" ]; then
|
|
attuale="$nuovo"
|
|
echo "$attuale" > $PWD/attuale.txt
|
|
fi
|
|
echo -e "\n $attuale\n"
|