From ff83f69154780dbe2fa2e12ec98365d7e6112595 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 13 Sep 2026 14:58:31 +0100 Subject: [PATCH] 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 --- include/init.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/init.sh b/include/init.sh index eba993fc..9adeee60 100644 --- a/include/init.sh +++ b/include/init.sh @@ -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