From 1cede024d6c2c6964dbbeb7dca51af5bb01e9714 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 9 Jun 2024 10:48:28 +0100 Subject: git.sh: simplify link_crossgcc() Signed-off-by: Leah Rowe --- include/git.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index 23110ff3..f362450d 100755 --- a/include/git.sh +++ b/include/git.sh @@ -163,8 +163,7 @@ git_am_patches() link_crossgcc() { ( - cd "$tmpgit/util" || $err "prep $1: !cd $tmpgit/util" - rm -Rf crossgcc || $err "prep $1: !rm xgcc" + x_ cd "$tmpgit/util" && x_ rm -Rf crossgcc ln -s "../../$xtree/util/crossgcc" crossgcc || $err "$1: !xgcc link" ) || $err "$1: !xgcc link" } -- cgit v1.2.1