1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-16 03:42:44 +03:00

init-early: use posix printf instead of echo -n

This commit is contained in:
Natanael Copa 2023-03-08 19:01:45 +01:00
parent 38cbdee6a2
commit c055e974f0

View File

@ -31,11 +31,11 @@ install_hotplugs() {
for module in $HOTPLUG_MODULES; do for module in $HOTPLUG_MODULES; do
result='-' result='-'
echo -n " $module" printf " $module"
if type "mod__$module" | grep -q "is a function"; then if type "mod__$module" | grep -q "is a function"; then
"mod__$module" && result='+' || { result='!'; rc=1; } "mod__$module" && result='+' || { result='!'; rc=1; }
fi fi
echo -n "($result)" printf "($result)"
done done
return $rc return $rc
} }