Skip to content

Commit

Permalink
mkinitramfs-ll.zsh: Tiny update & white-space clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tokiclover committed May 30, 2015
1 parent 6fa06f6 commit f954eb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mkinitramfs-ll.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,17 @@ if [[ -f "${PKG[name]}".conf ]] {
typeset -a compressor
compressor=(bzip2 gzip lzip lzop lz4 xz)

if (( ${+opts[-compressor]} )) && [[ ${opts[-compressor]} != "none" ]] {
case ${opts[-compressor]} )) {
(none) ;;
([a-z]*)
if [[ -e /usr/src/linux-${opts[-k]}/.config ]] {
config=/usr/src/linux-${opts[-k]}/.config
xgrep=${commands[grep]}
} elif [[ -e /proc/config.gz ]] {
config=/proc/config.gz
xgrep=${commands[zgrep]}
} else { warn "no kernel config file found" }
;;
}
if (( ${+config} )) {
CONFIG=CONFIG_RD_${${opts[-compressor][(w)1]}:u}
Expand Down Expand Up @@ -440,7 +443,7 @@ unset FONT font KEYMAP keymap
# Handle & copy splash themes
if (( ${+$opts[-s]} )) || (( ${+opts[-splash]} )) {
opts[-bin]+=:splash_util.static:fbcondecor_helper

if (( ${+opts[-toi]} || ${+opts[-t]} )) {
opts[-bin]+=:tuxoniceui_text
}
Expand Down

0 comments on commit f954eb8

Please sign in to comment.