From 815f134f43e801b66fa8856f2b6aefe96786e0fc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Jun 2011 01:17:38 -0700 Subject: [PATCH] Fix last commit to work regardless of nullglob. --- bin/ebuild-helpers/ecompress | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}" -- 2.26.2