diff --git a/README.md b/README.md index 5fdd4d1..030d9cd 100644 --- a/README.md +++ b/README.md @@ -377,8 +377,8 @@ they can be printed selectively using: Compressing images ------------------ -Images are using bzip2(1) for distribution. This can be invoked -manually using: +Images are compressed using bzip2(1) for distribution. This can +be invoked manually using: # make compress-[,] diff --git a/build/compress.sh b/build/compress.sh index c28d1b9..31acc19 100644 --- a/build/compress.sh +++ b/build/compress.sh @@ -34,10 +34,10 @@ SELF=compress for ARG in ${@}; do case ${ARG} in arm|dvd|nano|serial|vga|vm) - for FILE in $(find ${IMAGESDIR} -name \ + for IMAGE in $(find ${IMAGESDIR} -name \ "*-${PRODUCT_FLAVOUR}-${ARG}-*" \! -name "*.bz2"); do echo -n ">>> Compressing ${ARG} image... " - bzip2 ${FILE} + bzip2 ${IMAGE} echo "done" done ;;