From 0cf23b50857da57971e4bf063ba3cf5bb2cf5477 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 17 Jul 2011 19:21:54 -0400 Subject: mkinitcpio: simplify setting of SKIPHOOKS Signed-off-by: Dave Reisner --- mkinitcpio | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 82faaaf..dd67030 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -108,12 +108,7 @@ while getopts ':c:k:sb:g:p:m:nvH:LMhS:t:z:' arg; do p) PRESET="${OPTARG}" ;; n) COLOR=0 ;; v) QUIET=0 ;; - S) OLDIFS=${IFS} - IFS=, - SKIPHOOKS=(${OPTARG}) - IFS=${OLDIFS} - unset OLDIFS - ;; + S) IFS=, read -r -a SKIPHOOKS <<< "$OPTARG" ;; H) if [[ ! -r "${INSTDIR}/${OPTARG}" ]]; then error "No hook ${OPTARG}" exit 1 -- cgit v1.2.3-24-g4f1b