summaryrefslogtreecommitdiff
path: root/script/update/project
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-02 05:56:14 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-02 05:56:14 +0100
commit9dce8236efed907c70c5b216a9f8df8342b1d3b7 (patch)
treea6173b276730a017e7dcbe2e060929ef4f2ed022 /script/update/project
parent0f86a393ace984fcb2035138e01b61cda84af68d (diff)
update/project/trees: fix error handling on mkdir
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update/project')
-rwxr-xr-xscript/update/project/trees3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/update/project/trees b/script/update/project/trees
index 38d2c59d..093d5086 100755
--- a/script/update/project/trees
+++ b/script/update/project/trees
@@ -87,8 +87,7 @@ check_config_for_target()
fetch_from_upstream()
{
- [ -d "${project}" ] || mkdir -p "${project}" || return 1
- [ -d "${project}" ] || return 1
+ [ -d "${project}" ] || x_ mkdir -p "${project}"
[ -d "${project}/${project}" ] && return 0
x_ ./update project repo "${project}"