summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitramfs')
-rwxr-xr-xmkinitramfs5
1 files changed, 3 insertions, 2 deletions
diff --git a/mkinitramfs b/mkinitramfs
index bccdbed..1d74e76 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -136,8 +136,9 @@ else
COMPRESS=${compress}
fi
-if ! command -v ${compress} >/dev/null 2>&1; then
+if ! command -v "${compress}" >/dev/null 2>&1; then
compress=gzip
+ COMPRESS=GZIP
[ "${verbose}" = y ] && \
echo "No ${COMPRESS} in ${PATH}, using gzip"
fi
@@ -323,7 +324,7 @@ eval `
find . 4>&-; echo "ec1=$?;" >&4
} | {
cpio --quiet --dereference -o -H newc 4>&-; echo "ec2=$?;" >&4
- } | ${compress} >"${outfile}"
+ } | "${compress}" >"${outfile}"
echo "ec3=$?;" >&4
`
if [ "$ec1" -ne 0 ]; then exit "$ec1"; fi