Commit e65bf383 authored by chainofflowers's avatar chainofflowers

Fix parsing when HOOKS is an array

HOOKS from /etc/mkinitcpio.conf is now an *array* and must be referred to using `${var[@}}`.
parent c6f6650f
......@@ -27,7 +27,7 @@ check_system() {
. "${MKINITCPIOCONF}"
local found="";
for arg in ${HOOKS}
for arg in ${HOOKS[@]}
do
if [ "${arg}" == "mhwd-fb" ]; then
found="true"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment