[Script] getMadame accepte an history argument as a number
This commit is contained in:
parent
d7384c7d03
commit
047d8378b9
@ -11,6 +11,12 @@
|
|||||||
# Note : Works on Gnome and Xfce
|
# Note : Works on Gnome and Xfce
|
||||||
#
|
#
|
||||||
###########################################
|
###########################################
|
||||||
|
page=
|
||||||
|
|
||||||
|
if [ $# != 0 ]
|
||||||
|
then
|
||||||
|
page="/page/${1}"
|
||||||
|
fi
|
||||||
|
|
||||||
function chkinternet {
|
function chkinternet {
|
||||||
if [ `wget -q -O - google.com | grep -c "<title>Google</title>"` != 0 ]
|
if [ `wget -q -O - google.com | grep -c "<title>Google</title>"` != 0 ]
|
||||||
@ -84,7 +90,7 @@ then
|
|||||||
mkdir $dirprefix;
|
mkdir $dirprefix;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget -O - http://www.bonjourmadame.fr | grep -Eo "(http://www.bonjourmadame.fr/photo/[^\"]+)|(http://[0-9]+.media.tumblr.com/tumblr[^\"]+)" | head -n 1 | wget -q -i - -O $todaywp
|
wget -O - "http://www.bonjourmadame.fr${page}" | grep -Eo "(http://www.bonjourmadame.fr/photo/[^\"]+)|(http://[0-9]+.media.tumblr.com/tumblr[^\"]+)" | head -n 1 | wget -q -i - -O $todaywp
|
||||||
echo Photo downloaded OK
|
echo Photo downloaded OK
|
||||||
|
|
||||||
#ls $fileprefix* | sort -r | tail -n +2 | xargs rm -f
|
#ls $fileprefix* | sort -r | tail -n +2 | xargs rm -f
|
||||||
|
Loading…
Reference in New Issue
Block a user