diff --git a/mkinitramfs-ll.bash b/mkinitramfs-ll.bash index 381e54c..c127be3 100755 --- a/mkinitramfs-ll.bash +++ b/mkinitramfs-ll.bash @@ -256,7 +256,7 @@ function docpio { if [[ -f ${initramfs}.${extension} ]]; then mv ${initramfs}.${extension}{,.old} fi - if [[ -n "${extension#cpio}" ]]; then + if [[ -n "${ext#cpio}" ]]; then cmd+=" | ${opts[-compressor]} -c" fi eval ${cmd} > /${initramfs}.${extension} || diff --git a/mkinitramfs-ll.zsh b/mkinitramfs-ll.zsh index b5daf7e..fb567e3 100755 --- a/mkinitramfs-ll.zsh +++ b/mkinitramfs-ll.zsh @@ -251,7 +251,7 @@ function docpio { if [[ -f ${initramfs}.${extension} ]] { mv ${initramfs}.${extension}{,.old} } - if [[ -n ${extension#cpio} ]] { + if [[ -n ${ext#cpio} ]] { cmd+=" | ${=opts[-compressor]} -c" } eval ${=cmd} > ${initramfs}.${extension} ||