Browse Source

fix(busybox): shellcheck for modules.d/05busybox

master
Harald Hoyer 4 years ago committed by Harald Hoyer
parent
commit
c94bd1cd82
  1. 0
      modules.d/05busybox/.shchkdir
  2. 4
      modules.d/05busybox/module-setup.sh

0
modules.d/05busybox/.shchkdir

4
modules.d/05busybox/module-setup.sh

@ -17,7 +17,7 @@ install() {
local _i _path _busybox local _i _path _busybox
local _progs=() local _progs=()
_busybox=$(find_binary busybox) _busybox=$(find_binary busybox)
inst $_busybox /usr/bin/busybox inst "$_busybox" /usr/bin/busybox
for _i in $($_busybox --list); do for _i in $($_busybox --list); do
[[ ${_i} == busybox ]] && continue [[ ${_i} == busybox ]] && continue
_progs+=("${_i}") _progs+=("${_i}")
@ -26,6 +26,6 @@ install() {
for _i in "${_progs[@]}"; do for _i in "${_progs[@]}"; do
_path=$(find_binary "$_i") _path=$(find_binary "$_i")
[ -z "$_path" ] && continue [ -z "$_path" ] && continue
ln_r /usr/bin/busybox $_path ln_r /usr/bin/busybox "$_path"
done done
} }

Loading…
Cancel
Save