summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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