cookutils rev 336

cookiso: fix iso name for push_iso
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 17 22:30:46 2012 +0100 (2012-03-17)
parents 0f298b388313
children 103ba393cb28
files cookiso
line diff
     1.1 --- a/cookiso	Sat Mar 17 22:23:01 2012 +0100
     1.2 +++ b/cookiso	Sat Mar 17 22:30:46 2012 +0100
     1.3 @@ -142,14 +142,14 @@
     1.4  # Push an ISO to a server.
     1.5  push_iso() {
     1.6  	echo "Pushing to host: ${SSH_HOST}"
     1.7 -	if echo $flavor | fgrep core-4in1; then
     1.8 -		file=slitaz-$string
     1.9 -	else
    1.10 -		file=slitaz-$string-$flavor
    1.11 -	fi
    1.12  	export DROPBEAR_PASSWORD=none
    1.13  	for flavor in $flavors
    1.14  	do
    1.15 +		if echo $flavor | fgrep core-4in1; then
    1.16 +			file=slitaz-$string
    1.17 +		else
    1.18 +			file=slitaz-$string-$flavor
    1.19 +		fi
    1.20  		rsync $BWLIMIT -vtP -e "$SSH_CMD" $iso/$file.* \
    1.21  			${SSH_HOST}:$SSH_ISO/$string 2>&1 | tee $synclog
    1.22  	done