summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 10:48:28 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 10:48:28 +0100
commit1cede024d6c2c6964dbbeb7dca51af5bb01e9714 (patch)
tree0395cdb8e03b7912b6ef4bf378f314da1d6e5c03 /include
parent77e482aae607e0c9d13ff6263823f816db2c5372 (diff)
git.sh: simplify link_crossgcc()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/git.sh3
1 files changed, 1 insertions, 2 deletions
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"
}