]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/50gensplash/module-setup.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:11 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/50gensplash/module-setup.sh

index ec6af885b2c929297535f13c7b9dd5db12916a50..beed3c23e5429c9cd81bb1d5ea67b4639ab108c0 100755 (executable)
@@ -21,7 +21,7 @@ install() {
     call_splash_geninitramfs() {
         local _out _ret
 
-        _out=$(splash_geninitramfs -c "$1" ${@:2} 2>&1)
+        _out=$(splash_geninitramfs -c "$1" "${@:2}" 2>&1)
         _ret=$?
 
         if [[ ${_out} ]]; then
@@ -52,7 +52,7 @@ install() {
         _splash_res=${DRACUT_GENSPLASH_RES}
     elif [[ ${hostonly} ]]; then
         # Settings from config only in hostonly
-        [[ -e $dracutsysrootdir/etc/conf.d/splash ]] && source $dracutsysrootdir/etc/conf.d/splash
+        [[ -e $dracutsysrootdir/etc/conf.d/splash ]] && source "$dracutsysrootdir"/etc/conf.d/splash
         [[ ! ${_splash_theme} ]] && _splash_theme=default
         [[ ${_splash_res} ]] && _opts+=" -r ${_splash_res}"
     else