1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +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
result='-'
echo -n " $module"
printf " $module"
if type "mod__$module" | grep -q "is a function"; then
"mod__$module" && result='+' || { result='!'; rc=1; }
fi
echo -n "($result)"
printf "($result)"
done
return $rc
}