for loop
This commit is contained in:
parent
3f4d039ac9
commit
cb3ada7257
4
generate
4
generate
@ -174,7 +174,7 @@ install_driver() {
|
||||
# check monolithic kernel(builtin drivers)
|
||||
[ -d "${moddir}/${kernel}" ] || return 0
|
||||
|
||||
printf "%s\n" "$@" | while read -r driver; do
|
||||
for driver in $@; do
|
||||
# strip path and extension
|
||||
driver="${driver##*/}"
|
||||
driver="${driver%%.*}"
|
||||
@ -232,7 +232,7 @@ generate_depmod() {
|
||||
|
||||
# TODO make strip optional
|
||||
install_binary() {
|
||||
printf "%s\n" "$@" | while read -r binary; do
|
||||
for binary in $@; do
|
||||
msg info "installing binary $binary"
|
||||
# check binary existence
|
||||
command -v "$binary" > /dev/null 2>&1 || msg panic "$binary doesn't exists"
|
||||
|
Loading…
Reference in New Issue
Block a user