From cb3ada7257fcbca8fb3db0436396d4cfb98c096b Mon Sep 17 00:00:00 2001 From: illiliti Date: Wed, 19 Feb 2020 15:39:43 +0300 Subject: [PATCH] for loop --- generate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate b/generate index 49fbf18..ee7cde4 100755 --- a/generate +++ b/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"