diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-18 01:21:54 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-09-27 12:18:04 +0200 |
commit | 0cf23b50857da57971e4bf063ba3cf5bb2cf5477 (patch) | |
tree | 20e9711f4a3c438a6b9e05056fcf28a0aad50cf0 | |
parent | cc36db45aecb3c39cb5368c3cf2a1203a18daba7 (diff) | |
download | mkinitcpio-0cf23b50857da57971e4bf063ba3cf5bb2cf5477.tar.gz mkinitcpio-0cf23b50857da57971e4bf063ba3cf5bb2cf5477.tar.xz |
mkinitcpio: simplify setting of SKIPHOOKS
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | mkinitcpio | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |