From: Zac Medico Date: Thu, 30 Jun 2011 08:17:38 +0000 (-0700) Subject: Fix last commit to work regardless of nullglob. X-Git-Tag: v2.2.0_alpha42~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=815f134f43e801b66fa8856f2b6aefe96786e0fc;p=portage.git Fix last commit to work regardless of nullglob. --- 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}"