summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-18 01:21:54 +0200
committerDave Reisner <dreisner@archlinux.org>2011-09-27 12:18:04 +0200
commit0cf23b50857da57971e4bf063ba3cf5bb2cf5477 (patch)
tree20e9711f4a3c438a6b9e05056fcf28a0aad50cf0
parentcc36db45aecb3c39cb5368c3cf2a1203a18daba7 (diff)
downloadmkinitcpio-0cf23b50857da57971e4bf063ba3cf5bb2cf5477.tar.gz
mkinitcpio-0cf23b50857da57971e4bf063ba3cf5bb2cf5477.tar.xz
mkinitcpio: simplify setting of SKIPHOOKS
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio7
1 files changed, 1 insertions, 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