Skip to content

Commit

Permalink
mkinitramfs-ll.{ba,z}sh: Use the right command when an extension was …
Browse files Browse the repository at this point in the history
…specified (minor fix from PR #43)
  • Loading branch information
tokiclover committed Nov 6, 2016
1 parent f4e6bcc commit 2f2757c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkinitramfs-ll.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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} ||
Expand Down
2 changes: 1 addition & 1 deletion mkinitramfs-ll.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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} ||
Expand Down

0 comments on commit 2f2757c

Please sign in to comment.