diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-06-30 01:17:38 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-06-30 01:17:38 -0700 |
commit | 815f134f43e801b66fa8856f2b6aefe96786e0fc (patch) | |
tree | 0a9ded8735798bbf9e444cb564913a86e5451d4c | |
parent | a4336dd925767f1a78d7d046110fd7462f676d8d (diff) | |
download | portage-815f134f43e801b66fa8856f2b6aefe96786e0fc.tar.gz portage-815f134f43e801b66fa8856f2b6aefe96786e0fc.tar.bz2 portage-815f134f43e801b66fa8856f2b6aefe96786e0fc.zip |
Fix last commit to work regardless of nullglob.
-rwxr-xr-x | bin/ebuild-helpers/ecompress | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/ecompress b/bin/ebuild-helpers/ecompress index 9ff1c563f..b61421b00 100755 --- a/bin/ebuild-helpers/ecompress +++ b/bin/ebuild-helpers/ecompress @@ -83,7 +83,8 @@ case $1 in # If PORTAGE_COMPRESS_FLAGS contains -k then we need to avoid # having our glob match the uncompressed file here. suffix=$(echo compressme.*) - [[ -z $suffix ]] && suffix=$(echo compressme*) + [[ -z $suffix || "$suffix" == "compressme.*" ]] && \ + suffix=$(echo compressme*) suffix=${suffix#compressme} cd / rm -rf "${tmpdir}" |