update/project/trees: fix error handling on mkdir

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-10-02 05:56:14 +01:00
parent 0f86a393ac
commit 9dce8236ef
1 changed files with 1 additions and 2 deletions

View File

@ -87,8 +87,7 @@ check_config_for_target()
fetch_from_upstream() fetch_from_upstream()
{ {
[ -d "${project}" ] || mkdir -p "${project}" || return 1 [ -d "${project}" ] || x_ mkdir -p "${project}"
[ -d "${project}" ] || return 1
[ -d "${project}/${project}" ] && return 0 [ -d "${project}/${project}" ] && return 0
x_ ./update project repo "${project}" x_ ./update project repo "${project}"