ecompressdir: remove 'continue' from loop logic
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Nov 2011 19:24:35 +0000 (11:24 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Nov 2011 19:24:35 +0000 (11:24 -0800)
Hopefully this helps us avoid errors in loop logic like bug #389047.

bin/ebuild-helpers/ecompressdir

index fa427757d6abf923cc40169bad564aac7df66516..f9a846a90bc463346413a7c77bd26d09cce10355 100755 (executable)
@@ -133,14 +133,11 @@ for dir in "$@" ; do
                'cp -p "${file}" "${file}.ecompress.break" ; mv -f "${file}.ecompress.break" "${file}"' \;
 
        # now lets do our work
-       if [[ -z ${suffix} ]] ; then
-               restore_skip_dirs
-               continue
+       if [[ -n ${suffix} ]] ; then
+               vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${ED}}"
+               funk_up_dir "compress" "${suffix}" "ecompress"
        fi
 
-       vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${ED}}"
-       funk_up_dir "compress" "${suffix}" "ecompress"
-
        # finally, restore the skipped stuff
        restore_skip_dirs
 done