plumber

Plumber – a modern approach to plumbing
git clone git://r-36.net/plumber
Log | Files | Refs | LICENSE

imageopener (291B)


      1 #!/bin/sh
      2 
      3 mkdir -p $HOME/tmp/imagecache
      4 cd $HOME/tmp/imagecache
      5 
      6 file=$(basename "$1")
      7 
      8 case "$1" in
      9 *bilder.studio-belin.de*)
     10 	if [ -e "$file" ];
     11 	then
     12 		rm "$file"
     13 	fi
     14 	;;
     15 esac
     16 
     17 curl -s \
     18 	--user-agent "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1" \
     19 	-Lkz "$file" -O "$1"
     20 see "${file}"
     21