summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-09-25 13:30:33 +0000
committerZac Medico <zmedico@gentoo.org>2008-09-25 13:30:33 +0000
commita9c43e00915ed2eb0ebf47227403c3235b164c5a (patch)
tree1cf9d8b4c1a78e7c85438c810ee9de398791e265
parentBug #238550 - Set world-candidate = False for the @system since the portage (diff)
downloadportage-a9c43e00915ed2eb0ebf47227403c3235b164c5a.tar.gz
portage-a9c43e00915ed2eb0ebf47227403c3235b164c5a.tar.bz2
portage-a9c43e00915ed2eb0ebf47227403c3235b164c5a.zip
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
-rwxr-xr-xbin/ecompress3
1 files changed, 2 insertions, 1 deletions
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