From: Zac Medico Date: Thu, 25 Sep 2008 13:30:33 +0000 (-0000) Subject: Fix the case where all arguments are filtered out by X-Git-Tag: v2.2_rc10~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9c43e00915ed2eb0ebf47227403c3235b164c5a;p=portage.git 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 --- 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