From 7984722e127d411d2c978eaa9665709b4a681485 Mon Sep 17 00:00:00 2001 From: Morten Linderud Date: Tue, 17 Sep 2019 21:42:02 +0200 Subject: [mkinitcpio] Fixup declaration and remove trailing : --- mkinitcpio | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index f40cd6d..9d4357e 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -14,8 +14,7 @@ _f_functions=functions _f_config=mkinitcpio.conf _d_hooks="$PWD/hooks:/usr/lib/initcpio/hooks:/lib/initcpio/hooks" _d_install="$PWD/install:/usr/lib/initcpio/install:/lib/initcpio/install" -_d_flag_hooks="" -_d_flag_install="" +_d_flag_{hooks,install}= _d_firmware=({/usr,}/lib/firmware/updates {/usr,}/lib/firmware) _d_presets=mkinitcpio.d @@ -429,8 +428,8 @@ if [[ -t 1 ]] && (( _optcolor )); then fi if [[ -n $_d_flag_hooks && -n $_d_flag_install ]]; then - _d_hooks=$_d_flag_hooks - _d_install=$_d_flag_install + _d_hooks=${_d_flag_hooks%:} + _d_install=${_d_flag_install%:} fi # insist that /proc and /dev be mounted (important for chroots) -- cgit v1.2.3-24-g4f1b