cookutils rev 240

cook: fix if no option is used
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 15:18:33 2011 +0200 (2011-05-27)
parents 35abcedb5ed7
children 35541dcaad12
files cook
line diff
     1.1 --- a/cook	Fri May 27 15:15:19 2011 +0200
     1.2 +++ b/cook	Fri May 27 15:18:33 2011 +0200
     1.3 @@ -868,10 +868,9 @@
     1.4  			--flavors)
     1.5  				continue ;;
     1.6  			*)
     1.7 -				PKGS="$2"
     1.8 +				[ "$2" ] && PKGS="$2"
     1.9  				[ ! -d "$PKGS" ] && \
    1.10 -					gettext -e "\nPackages directory doesn't exist\n\n" &&
    1.11 -					exit 1 ;;
    1.12 +					gettext -e "\nPackages directory doesn't exist\n\n" && exit 1 ;;
    1.13  		esac
    1.14  		time=$(date +%s)
    1.15  		flavors=$SLITAZ/flavors