[arch-projects] [PATCH 10/13] mkinitcpio: simplify setting of SKIPHOOKS

Dave Reisner d at falconindy.com
Fri Jul 22 20:21:17 EDT 2011


Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 mkinitcpio |    7 +------
 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
-- 
1.7.6



More information about the arch-projects mailing list