diff options
author | Leah Rowe <leah@libreboot.org> | 2025-10-04 22:36:11 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-10-04 22:42:42 +0100 |
commit | c1d6cd22c2390c7317b8996f9b993697491c1eab (patch) | |
tree | 120aebfa5328e7699759a087d15a2fd0aeafc3f7 /include/init.sh | |
parent | f358cfaa55219c537de0eb534997be36cba93f14 (diff) |
xbmk: don't call mkdir. use xbmkdir (new function)
xbmkdir checks if a directory exists, before running
mkdir, and then still uses -p
i was testing xbmk on arch linux today, and noticed
that it errored out when a directory already exists.
i'm mitigating against buggy or differently behaving
mkdir implementations this way, by wrapping around
it.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r-- | include/init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/init.sh b/include/init.sh index 72af26c3..6bed6ca4 100644 --- a/include/init.sh +++ b/include/init.sh @@ -58,7 +58,7 @@ xbmk_init() fi export PWD="$xbmkpwd" - x_ mkdir -p "$basetmp" + x_ xbmkdir "$basetmp" for init_cmd in get_version set_env set_threads git_init child_exec; do if ! xbmk_$init_cmd "$@"; then |