tazwok rev 182

tazwok: weird url redirections support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 22 15:47:00 2010 +0100 (2010-11-22)
parents 0cbc908e7708
children d314ec7ea117
files tazwok
line diff
     1.1 --- a/tazwok	Sun Nov 07 08:21:39 2010 +0000
     1.2 +++ b/tazwok	Mon Nov 22 15:47:00 2010 +0100
     1.3 @@ -280,9 +280,10 @@
     1.4  	for file in $@; do
     1.5  		case "$file" in
     1.6  		[Hh][Tt][Tt][Pp][Ss]*)
     1.7 -			wget --no-check-certificate $file && break ;;
     1.8 +			wget --no-check-certificate -O $(basename $file) \
     1.9 +				$file && break ;;
    1.10  		esac
    1.11 -		wget $file && break
    1.12 +		wget -O $(basename $file) $file && break
    1.13  	done
    1.14  }
    1.15