]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(busybox): shellcheck for modules.d/05busybox
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:11 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 30 Mar 2021 08:11:24 +0000 (10:11 +0200)
modules.d/05busybox/.shchkdir [new file with mode: 0644]
modules.d/05busybox/module-setup.sh

diff --git a/modules.d/05busybox/.shchkdir b/modules.d/05busybox/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index f19ce0b599c579ef88bd3ce9ad8d2e0e75570836..86b3761a2e7be722fccfc84ebecec1d911910375 100755 (executable)
@@ -17,7 +17,7 @@ install() {
     local _i _path _busybox
     local _progs=()
     _busybox=$(find_binary busybox)
-    inst $_busybox /usr/bin/busybox
+    inst "$_busybox" /usr/bin/busybox
     for _i in $($_busybox --list); do
         [[ ${_i} == busybox ]] && continue
         _progs+=("${_i}")
@@ -26,6 +26,6 @@ install() {
     for _i in "${_progs[@]}"; do
         _path=$(find_binary "$_i")
         [ -z "$_path" ] && continue
-        ln_r /usr/bin/busybox $_path
+        ln_r /usr/bin/busybox "$_path"
     done
 }