mini fix
This commit is contained in:
parent
325489bae6
commit
fbd4539751
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
match=$(date +"%a" | tr '[:upper:]' '[:lower:]' | sed 's/mon/lunedi/;s/tue/martedi/;s/wed/mercoledi/;s/thu/giovedi/;s/fri/venerdi/;s/sat/sabato/;s/sun/domenica/')
|
match=$(date +"%a" | tr '[:upper:]' '[:lower:]' | sed 's/mon/lunedì/;s/tue/martedì/;s/wed/mercoledì/;s/thu/giovedì/;s/fri/venerdì/;s/sat/sabato/;s/sun/domenica/')
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
-g|--gattini)
|
-g|--gattini)
|
||||||
|
@ -19,4 +19,4 @@ case $1 in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
curl -s "http://immaginibuongiorno.it" | grep "$match" | grep -oP "(?<=src=\").*(?=\")" | cut -d '"' -f 1 | shuf -n 1
|
curl -s "http://immaginibuongiorno.it" | sed 's/\/>/\/>\n/g' | grep -i "$match" | grep -v "shaken" | grep -oP "(?<=src=\").*(?=\")" | cut -d '"' -f 1 | shuf -n 1
|
||||||
|
|
Loading…
Reference in a new issue