init.sh: remove unnecessary directory check

literally the point of -p in mkdir is to, you know,
check whether the directory already exists

unclear thinking = unclear code

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-13 14:58:31 +01:00
parent 0363bcaa0f
commit ff83f69154
+1 -2
View File
@@ -64,8 +64,7 @@ xbmkpkg()
printf "Updating package use...\n"
printf "Writing into %s" "$pkg_use_file..."
[ ! -d "`dirname $pkg_use_file`" ] && \
x_ mkdir -p "`dirname $pkg_use_file`"
x_ mkdir -p "`dirname $pkg_use_file`"
printf "%s\n" "$pkg_use" >> "$pkg_use_file"
fi