git.sh: simplify link_crossgcc()

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-09 10:48:28 +01:00
parent 77e482aae6
commit 1cede024d6
1 changed files with 1 additions and 2 deletions

View File

@ -163,8 +163,7 @@ git_am_patches()
link_crossgcc() link_crossgcc()
{ {
( (
cd "$tmpgit/util" || $err "prep $1: !cd $tmpgit/util" x_ cd "$tmpgit/util" && x_ rm -Rf crossgcc
rm -Rf crossgcc || $err "prep $1: !rm xgcc"
ln -s "../../$xtree/util/crossgcc" crossgcc || $err "$1: !xgcc link" ln -s "../../$xtree/util/crossgcc" crossgcc || $err "$1: !xgcc link"
) || $err "$1: !xgcc link" ) || $err "$1: !xgcc link"
} }