init.sh: add error check on mkdir in gentoo check

yes. i should have reviewed that patch properly.

the code should meet lbmk standards now.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-07-21 20:24:12 +01:00
parent 8d9d1a88a0
commit 56697c1da3
+1 -1
View File
@@ -97,7 +97,7 @@ xbmkpkg()
printf "Writing into %s" "$pkg_use_file..." printf "Writing into %s" "$pkg_use_file..."
if [ ! -d "`dirname $pkg_use_file`" ]; then if [ ! -d "`dirname $pkg_use_file`" ]; then
mkdir -p "`dirname $pkg_use_file`" x_ mkdir -p "`dirname $pkg_use_file`"
fi fi
printf "%s\n" "$pkg_use" >> "$pkg_use_file" printf "%s\n" "$pkg_use" >> "$pkg_use_file"