From 2ee186aee3aa3ab9619ed9549bd3b82909dcfbd0 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 9 Jun 2024 18:48:58 +0100 Subject: minor code cleanup in the build system Signed-off-by: Leah Rowe --- include/git.sh | 3 +-- include/vendor.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index 3ee27fc6..46b63014 100755 --- a/include/git.sh +++ b/include/git.sh @@ -11,8 +11,7 @@ fetch_project_trees() [ ! -d "src/$project/$project" ] && x_ mkdir -p "src/$project" \ && fetch_project_repo "$project" fetch_config - e "src/$project/$tree" d && return 0 - prepare_new_tree + e "src/$project/$tree" d || prepare_new_tree; return 0 } fetch_config() diff --git a/include/vendor.sh b/include/vendor.sh index 4a0e7ae6..b2fc5346 100755 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -131,8 +131,7 @@ mkdirs() mkdir -p "${1%/*}" || $err "mkdirs: !mkdir -p ${1%/*}" remkdir "$appdir" - extract_archive "$_dl" "$appdir" || \ - [ "$2" = "extract_e6400vga" ] || \ + extract_archive "$_dl" "$appdir" || [ "$2" = "extract_e6400vga" ] || \ $err "mkdirs $1 $2: !extract"; return 0 } -- cgit v1.2.1