diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-13 14:58:31 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-13 14:58:31 +0100 |
| commit | ff83f69154780dbe2fa2e12ec98365d7e6112595 (patch) | |
| tree | a935c631a18a69fdee08584bea0932a2cc7e829e | |
| parent | 0363bcaa0f5251cdf976f836f1fd5229e12bc435 (diff) | |
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>
| -rw-r--r-- | include/init.sh | 3 |
1 files changed, 1 insertions, 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 |
