From a9c43e00915ed2eb0ebf47227403c3235b164c5a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Sep 2008 13:30:33 +0000 Subject: Fix the case where all arguments are filtered out by PORTAGE_COMPRESS_EXCLUDE_SUFFIXES, since otherwise 'set' was called with no arguments which caused the environment to be displayed on stdout. svn path=/main/trunk/; revision=11539 --- bin/ecompress | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ecompress') diff --git a/bin/ecompress b/bin/ecompress index c20bfa1e1..e5f8808a9 100755 --- a/bin/ecompress +++ b/bin/ecompress @@ -77,7 +77,8 @@ case $1 in filtered_args[$i]=$x (( i++ )) done - set "${filtered_args[@]}" + [ $i -eq 0 ] && exit 0 + set -- "${filtered_args[@]}" # If a compressed version of the file already exists, simply # delete it so that the compressor doesn't whine (bzip2 will -- cgit v1.2.3-1-g7c22